act

Contesting Leviathan: activists, hunters, and state power in the Makah whaling conflict / Les Beldo

Dewey Library - SH383.2.B45 2019




act

Sustainable development goals: their impacts on forests and people / edited by Pia Katila, Carol J. Pierce Colfer, Wil de Jong, Glenn Galloway, Pablo Pacheco, Georg Winkel

Online Resource




act

Landscape impact assessment in planning processes / Ingrid Belčáková, Paola Gazzola, Eva Pauditšová ; managing editor Agnieszka Topolska, language editor Jonathan Wotton

Rotch Library - GF90.B45 2018




act

Residential property price indexes: theory and practice / W. Erwin Diewert, Kiyohiko G. Nishimura, Chihiro Shimizu, Tsutomu Watanabe

Online Resource




act

Plant factory: an indoor vertical farming system for efficient quality food production / edited by Toyoki Kozai, Genhua Niu, Michiko Takagaki

Online Resource




act

Plant-Fire Interactions: Applying Ecophysiology to Wildfire Management / Victor Resco de Dios

Online Resource




act

Template-based fabrication of spatially organized 3D bioactive constructs using magnetic low-concentration gelation methacrylate (GelMA) microfibers

Soft Matter, 2020, 16,3902-3913
DOI: 10.1039/C9SM01945F, Paper
Tao Sun, Yibing Yao, Qing Shi, Huaping Wang, Paolo Dario, Junzhong Sun, Qiang Huang, Toshio Fukuda
A new template-based method to apply low-concentration GelMA microfibers as building blocks for higher-order cellular assembly.
The content of this RSS Feed (c) The Royal Society of Chemistry




act

Hexatic phase in a model of active biological tissues

Soft Matter, 2020, 16,3914-3920
DOI: 10.1039/D0SM00109K, Paper
Anshuman Pasupalak, Li Yan-Wei, Ran Ni, Massimo Pica Ciamarra
Epithelial cell tissues undergo a solid–liquid transition, e.g. as the motility of the cells increases. We find an intermediate hexatic phase in between the solid and the liquid ones, and the transition to follow the KTHNY scenario.
The content of this RSS Feed (c) The Royal Society of Chemistry




act

A practical guide to active colloids: choosing synthetic model systems for soft matter physics research

Soft Matter, 2020, 16,3846-3868
DOI: 10.1039/D0SM00222D, Review Article
Wei Wang, Xianglong Lv, Jeffrey L. Moran, Shifang Duan, Chao Zhou
This review article provides practical, experimentally relevant details on six common types of active colloids useful for soft matter research.
The content of this RSS Feed (c) The Royal Society of Chemistry




act

Effects of sodium chloride on rheological behaviour of the gemini-like surfactants

Soft Matter, 2020, 16,4024-4031
DOI: 10.1039/D0SM00243G, Paper
Xinxin Li, Pengxiang Wang, Xiaoyu Hou, Fang Wang, Han Zhao, Bobo Zhou, Hongwen Zhang, Hongbin Yang, Wanli Kang
Effects of NaCl on the rheological behaviour of the gemini-like surfactants and the mechanism of the effects were investigated.
The content of this RSS Feed (c) The Royal Society of Chemistry




act

Structural properties of contractile gels based on light-driven molecular motors: a small-angle neutron and X-ray study

Soft Matter, 2020, 16,4008-4023
DOI: 10.1039/D0SM00031K, Paper
Giacomo Mariani, Jean-Rémy Colard-Itté, Emilie Moulin, Nicolas Giuseppone, Eric Buhler
The collective rotation of light-driven molecular motors actuates the structural changes and macroscopic contraction of the chemical gels.
The content of this RSS Feed (c) The Royal Society of Chemistry




act

Quantifying the non-equilibrium activity of an active colloid

Soft Matter, 2020, Advance Article
DOI: 10.1039/D0SM00398K, Paper
Sarah Eldeen, Ryan Muoio, Paris Blaisdell-Pijuan, Ngoc La, Mauricio Gomez, Alex Vidal, Wylie Ahmed
Active matter systems exhibit rich emergent behavior due to constant injection and dissipation of energy at the level of individual agents. We characterize the dissipation of single active colloids.
To cite this article before page numbers are assigned, use the DOI form of citation above.
The content of this RSS Feed (c) The Royal Society of Chemistry




act

Impact of wormlike micelles on nano and macroscopic structure of TEMPO-oxidized cellulose nanofibrils hydrogels

Soft Matter, 2020, Accepted Manuscript
DOI: 10.1039/D0SM00135J, Paper
Open Access
  This article is licensed under a Creative Commons Attribution 3.0 Unported Licence.
Marcelo A. da Silva, Vincenzo Calabrese, Julien Schmitt, Kazi M. Zakir Hossain, Saffron J Bryant, Najet Mahmoudi, Janet L Scott, Karen J Edler
In this work, we investigated the effect of adding surfactant mixtures on the rheological properties of TEMPO-oxidized cellulose nanofibrils (OCNF) saline dispersions. Three surfactant mixtures were studied: cocamidopropyl betaine (CAPB)/sodium...
The content of this RSS Feed (c) The Royal Society of Chemistry




act

Bioactive scaffolds based on collagen filaments with tunable physico-chemical and biological features

Soft Matter, 2020, Advance Article
DOI: 10.1039/D0SM00233J, Paper
Ting Lu, Hong Hu, Yuanqi Li, Qingsong Jiang, Jinlei Su, Hai Lin, Yun Xiao, Xiangdong Zhu, Xingdong Zhang
Native tissues such as nerve bundles, blood vessels and tendons have extracellular matrices with a characteristic linear orientation, which cannot be fully achieved with the current technology for the development of regenerative biomaterials.
To cite this article before page numbers are assigned, use the DOI form of citation above.
The content of this RSS Feed (c) The Royal Society of Chemistry




act

Different-shaped micro-objects driven by active particle aggregations

Soft Matter, 2020, Advance Article
DOI: 10.1039/D0SM00160K, Paper
Chen Wang, Hongyuan Jiang
We study the dynamics of passive micro-objects in the active bath. The motion of micro-objects depends on the pattern of active particle aggregations.
To cite this article before page numbers are assigned, use the DOI form of citation above.
The content of this RSS Feed (c) The Royal Society of Chemistry




act

Liposomal adhesion via electrostatic interactions and osmotic deflation increase membrane tension and lipid diffusion coefficient

Soft Matter, 2020, Advance Article
DOI: 10.1039/D0SM00416B, Paper
Atsushi Oda, Chiho Watanabe, Natsumi Aoki, Miho Yanagisawa
Liposome–liposome adhesion by electrostatic interactions and osmotic contraction increase membrane tension and the lipid diffusion coefficient compared to isolated liposomes.
To cite this article before page numbers are assigned, use the DOI form of citation above.
The content of this RSS Feed (c) The Royal Society of Chemistry




act

Binary mixtures of active and passive particles on a sphere

Soft Matter, 2020, Advance Article
DOI: 10.1039/D0SM00281J, Communication
Bao-quan Ai, Bu-yun Zhou, Xiao-miao Zhang
According to the competition between rotational diffusion and polar alignment, we find three distinct phases: a mixed phase and two different demixed phases.
To cite this article before page numbers are assigned, use the DOI form of citation above.
The content of this RSS Feed (c) The Royal Society of Chemistry




act

Effects of Eigen and Actual Frequencies of Soft Elastic Surfaces on droplet Rebound from Stationary Flexible Feather Vanes

Soft Matter, 2020, Accepted Manuscript
DOI: 10.1039/D0SM00315H, Paper
Chengchun Zhang, Zhengyang Wu, Chun Shen, Yihua Zheng, LIANG YANG, Yan Liu, Luquan Ren
The aim of this paper is to investigate the effect of eigenfrequency and the actual frequency of the elastic surface for the droplet rebound. The elastic surface used in this...
The content of this RSS Feed (c) The Royal Society of Chemistry




act

Impact of Chiral Supramolecular Nanostructure on the Mechanical and Electrical Performances of Triphenylene-based discotic physical gels

Soft Matter, 2020, Accepted Manuscript
DOI: 10.1039/D0SM00152J, Paper
Hongli Zhang, Junjie Cheng, Qiang Zhou, Qijin Zhang, Gang Zou
Discotic π-conjugated supramolecular assemblies, especially with chiral supramolecular nanostructures, have been attracting growing research interests due to their significant optoelectronic properties and the possibilities of their applications in the new...
The content of this RSS Feed (c) The Royal Society of Chemistry




act

Controlled shape morphing of solvent free thermoresponsive soft actuators

Soft Matter, 2020, 16,4162-4172
DOI: 10.1039/D0SM00020E, Paper
Vadakkumnalath Prakasan Anju, Raghunandan Pratoori, Deepak Kumar Gupta, Rajendra Joshi, Ratna Kumar Annabattula, Pijush Ghosh
Reconfigurable actuators are designed based on chitosan and pNipam which has the capability to attain precise and programmable actuation. The current approach offers a feasible way to fabricate soft actuators with repeatable and reversible actuation.
The content of this RSS Feed (c) The Royal Society of Chemistry




act

Pinning dislocations in colloidal crystals with active particles that seek stacking faults

Soft Matter, 2020, 16,4182-4191
DOI: 10.1039/C9SM02514F, Paper
Bryan VanSaders, Sharon C. Glotzer
By designing the shape of an active particle, its transport through a dense crystal can be tailored, as well as its interaction with dislocation defects present in the host crystal.
The content of this RSS Feed (c) The Royal Society of Chemistry




act

Experimental observation of boundary-driven oscillations in a reaction–diffusion–advection system

Soft Matter, 2020, 16,4243-4255
DOI: 10.1039/C9SM02291K, Paper
Open Access
  This article is licensed under a Creative Commons Attribution 3.0 Unported Licence.
Torsten Eckstein, Estefania Vidal-Henriquez, Azam Gholami
Boundary-driven oscillations are observed experimentally in a reaction-diffusion-advection system, namely in the signaling population of Dictyostelium discoideum cells.
The content of this RSS Feed (c) The Royal Society of Chemistry




act

Lipid-core/polymer-shell hybrid nanoparticles: synthesis and characterization by fluorescence labeling and electrophoresis

Soft Matter, 2020, 16,4173-4181
DOI: 10.1039/D0SM00077A, Paper
Sophie Bou, Xinyue Wang, Nicolas Anton, Redouane Bouchaala, Andrey S. Klymchenko, Mayeul Collot
New hybrid nanoparticles have been obtained by simple nanoprecipitation using fluorescent labeling of both the oily core (BODIPY) and the polymeric shell (rhodamine) thus allowing the use of electrophoresis to assess their formation and stability.
The content of this RSS Feed (c) The Royal Society of Chemistry




act

Characterizing the fluid–matrix affinity in an organogel from the growth dynamics of oil stains on blotting paper

Soft Matter, 2020, 16,4200-4209
DOI: 10.1039/C9SM01965K, Paper
Open Access
Qierui Zhang, Frieder Mugele, Piet M. Lugt, Dirk van den Ende
Fluid–matrix affinity in an organogel is characterized by capillarity-induced oil release using absorbing paper.
The content of this RSS Feed (c) The Royal Society of Chemistry




act

Propagation of active nematic–isotropic interfaces on substrates

Soft Matter, 2020, 16,4256-4266
DOI: 10.1039/C9SM02306B, Paper
Rodrigo C. V. Coelho, Nuno A. M. Araújo, Margarida M. Telo da Gama
Motivated by results for the propagation of active–passive interfaces of bacterial Serratia marcescens swarms, we used a hydrodynamic multiphase model to investigate the propagation of interfaces of active nematics on substrates.
The content of this RSS Feed (c) The Royal Society of Chemistry




act

Rapid analysis of cell-generated forces within a multicellular aggregate using microsphere-based traction force microscopy

Soft Matter, 2020, 16,4192-4199
DOI: 10.1039/C9SM02377A, Paper
Buğra Kaytanlı, Aimal H. Khankhel, Noy Cohen, Megan T. Valentine
We measure cell-generated forces from the deformations of elastic microspheres embedded within multicellular aggregates. Using a computationally efficient analytical model, we directly obtain the full 3D mapping of surface stresses within minutes.
The content of this RSS Feed (c) The Royal Society of Chemistry




act

Rapid characterization of neutral polymer brush with a conventional zetameter and a variable pinch of salt

Soft Matter, 2020, 16,4274-4282
DOI: 10.1039/C9SM01850F, Paper
Mena Youssef, Alexandre Morin, Antoine Aubret, Stefano Sacanna, Jérémie Palacci
We take advantage of the nanoscopic nature of the Debye length and used it as a probe to characterize polymer brushes on colloidal particles.
The content of this RSS Feed (c) The Royal Society of Chemistry




act

Surface-topology-controlled mechanical characteristics of triply periodic carbon Schwarzite foams

Soft Matter, 2020, 16,4324-4338
DOI: 10.1039/D0SM00136H, Paper
Hao Gong, Jinjie Liu, Ke Xu, Jianyang Wu, Yang Li
Carbon Schwarzites exhibit unique mechanical characteristics that are dominated by their topologies, rather than the mass density.
The content of this RSS Feed (c) The Royal Society of Chemistry




act

Structural characterization of fibrous synthetic hydrogels using fluorescence microscopy

Soft Matter, 2020, 16,4210-4219
DOI: 10.1039/C9SM01828J, Paper
Open Access
Johannes Vandaele, Boris Louis, Kaizheng Liu, Rafael Camacho, Paul H. J. Kouwer, Susana Rocha
The structural features of the matrix surrounding the cells play a crucial role in regulating their behavior.
The content of this RSS Feed (c) The Royal Society of Chemistry




act

Active noise experienced by a passive particle trapped in an active bath

Soft Matter, 2020, Advance Article
DOI: 10.1039/D0SM00006J, Paper
Simin Ye, Peng Liu, Fangfu Ye, Ke Chen, Mingcheng Yang
We study the properties of active noise experienced by a passive particle harmonically trapped in an active bath. The active noise is shown to depend on the trap stiffness.
To cite this article before page numbers are assigned, use the DOI form of citation above.
The content of this RSS Feed (c) The Royal Society of Chemistry




act

Controlled release of entrapped nanoparticles from thermoresponsive hydrogels with tunable network characteristics

Soft Matter, 2020, Advance Article
DOI: 10.1039/D0SM00207K, Paper
Yi Wang, Zhen Li, Jie Ouyang, George Em Karniadakis
Thermoresponsive hydrogels have been studied intensively for creating smart drug carriers and controlled drug delivery.
To cite this article before page numbers are assigned, use the DOI form of citation above.
The content of this RSS Feed (c) The Royal Society of Chemistry




act

Wall entrapment of peritrichous bacteria: A mesoscale hydrodynamics simulation study

Soft Matter, 2020, Accepted Manuscript
DOI: 10.1039/D0SM00571A, Paper
S. Mahdiyeh Mousavi, Gerhard Gompper, Roland G. Winkler
Microswimmers such as E. Coli bacteria accumulate and exhibit an intriguing dynamics near walls, governed by hydrodynamic and steric interactions. Insight into the underlying mechanisms and predominant interactions demand a...
The content of this RSS Feed (c) The Royal Society of Chemistry




act

Professional Practice for Interior Designers, 6th Edition


 

The leading guide to the business practice of the interior design profession, updated to reflect the latest trends

For nearly thirty years, Professional Practice for Interior Designers has been a must-have resource for aspiring designers and practicing professionals. This revised and updated Sixth Edition continues to offer authoritative guidance related to the business of the interior design profession—from the basics to the latest topics and tools



Read More...




act

Museum Practice


 

MUSEUM PR ACTICE Edited by CONAL MCCARTHY

Museum Practice covers the professional work carried out in museums and art galleries of all types, including the core functions of management, collections, exhibitions, and programs. Some forms of museum practice are familiar to visitors, yet within these diverse and complex institutions many practices are hidden from view, such as creating marketing campaigns, curating and designing exhibitions, developing



Read More...





act

Inspect chemical factories before reopening: Tamil Nadu Consumer Protection Organisation

The Tamil Nadu Consumer Protection Organisation has asked the Tamil Nadu government to form a committee of officials from the environment, industries




act

[ASAP] Describing Meta-Atoms Using the Exact Higher-Order Polarizability Tensors

ACS Photonics
DOI: 10.1021/acsphotonics.9b01776




act

[ASAP] Size, Ligand, and Defect-Dependent Electron–Phonon Coupling in Chalcogenide and Perovskite Nanocrystals and Its Impact on Luminescence Line Widths

ACS Photonics
DOI: 10.1021/acsphotonics.0c00034




act

[ASAP] Hierarchical Plasmon Resonances in Fractal Structures

ACS Photonics
DOI: 10.1021/acsphotonics.0c00110




act

[ASAP] Chip-Scale Reconfigurable Optical Full-Field Manipulation: Enabling a Compact Grooming Photonic Signal Processor

ACS Photonics
DOI: 10.1021/acsphotonics.0c00103




act

[ASAP] Exciton-Polaritons with Magnetic and Electric Character in All-Dielectric Metasurfaces

ACS Photonics
DOI: 10.1021/acsphotonics.0c00063




act

Interactivity and Animation with Variable Fonts

Mandy Michael turns the corner on our variable font adventure and stumbles into a grotto of wonder and amazement. Not forgetting the need for a proper performance budget, Mandy shows how variable fonts can free your creativity from bygone technical constraints.


If you read Jason’s introductory article about variable fonts, you’ll understand the many benefits and opportunities that they offer in modern web development. From this point on we’ll assume that you have either read Jason’s introduction or have some prior knowledge of variable fonts so we can skip over the getting started information. If you haven’t read up on variable fonts before jump over to “Introduction to Variable Fonts: Everything you thought you knew about fonts just changed” first and then come join me back here so we can dive into using variable fonts for interactivity and animations!

Creative Opportunities

If we can use variable fonts to improve the performance of our websites while increasing the amount of style variations available to us, it means that we no longer need to trade off design for performance. Creativity can be the driving force behind our decisions, rather than performance and technical limitations.

Cookie text effect font: This Man is a Monster, by Comic Book Fonts.

My goal is to demonstrate how to create interactive, creative text on the web by combining variable fonts with CSS and JavaScript techniques that you may already be familiar with. With the introduction of variable fonts, designs which would have previously been a heavy burden on performance, or simply impossible due to technical limitations, are now completely possible.

Still I Rise Poem by Maya Angelou, Demo emphasising different words with variable fonts. View on Codepen.
Variable fonts demo with CSS Grid using multiple weights and font sizes to emphasise different parts of the message. View on Codepen.

The tone and intent of our words can be more effectively represented with less worry over the impacts of loading in “too many font weights” (or other styles). This means that we can start a new path and focus on representing the content in more meaningful ways. For example, emphasising different words, or phrases depending on their importance in the story or content.

Candy Cane Christmas Themed Text Effect with FS Pimlico Glow by Font Smith. View on Codepen.

Note: using variable fonts does not negate the need for a good web font performance strategy! This is still important, because after all, they are still fonts. Keep that in mind and check out some of the great work done by Monica Dinculescu, Zach Leatherman or this incredible article by Helen Homes.

Variable Fonts & Animations

Because variable fonts can have an interpolated range of values we can leverage the flexibility and interactive nature of the web. Rather than using SVG, videos or JavaScript to accomplish these effects, we can create animations or transitions using real text, and we can do this using techniques we may already be familiar with. This means we can have editable, selectable, searchable, copy-pastable text, which is accessible via a screenreader.

Grass Variable Font Demo

Growing Grass Variable Font Text. Demo on Codepen.

This effect is achieved using a font called Decovar, by David Berlow. To achieve the animation effect we only need a couple of things to get started.

First, we set up the font-family and make use of the new property font-variation-settings to access the different axes available in Decovar.

h1 {
  font-family: "Decovar";
  font-variation-settings: 'INLN' 1000, 'SWRM' 1000;
}

For this effect, we use two custom axis – the first is called “inline” and is represented by the code INLI and the second is “skeleton worm” represented by the code SWRM. For both axes, the maximum value is 1000 and the minimum value is 0. For this effect, we’ll make the most of the full axis range.

Once we have the base set up, we can create the animation. There are a number of ways to animate variable fonts. In this demo, we’ll use CSS keyframe animations and the font-variation-settings property, but you can also use CSS transitions and JavaScript as well.

The code below will start with the “leaves” expanded and then shrink back until it disappears.

@keyframes grow {
  0% {
    font-variation-settings: 'INLN' 1000, 'SWRM' 1000;
  }
  100% {
    font-variation-settings: 'INLN' 1000, 'SWRM' 0;
  }
}

Once we have created the keyframes we can add the animation to the h1 element, and that is the last piece needed in order to create the animation.

h1 {
  font-family: "Decovar";
  font-variation-settings: 'INLN' 1000, 'SWRM' 1000;
  animation: grow 4s linear alternate infinite;
}

What this demonstrates is that typically, to accomplish effects like this, the heavy lifting is done by the font. We really only need a few lines of CSS for the animation, which if you think about it, is pretty incredible.

There are all sorts of interesting, creative applications of variable fonts, and a lot of incredible fonts you can make the most of. Whether you want to create that “hand-writing” effect that we often see represented with SVG, or something a little different, there are a lot of different options.

Duos Writer: Hand Writing

Demo of hand writing variable font, Duos Writer by Underware.

Decovar: Disappearing Text

See the Pen CSS-only variable font demo using Decovar Regular by Mandy Michael (@mandymichael) on CodePen.

Cheee: Snow Text

Snow Text Effect - Text fills up with snow and gets “heavier” at the bottom as more snow gathers. Featuring “Cheee” by OhNoTypeCo. View on Codepen.

Variable Fonts, Media Queries and Customisation

It’s not that these are just beautiful or cool effects, what they demonstrate is that as developers and designers we can now control the font itself and that that means is that variable fonts allow typography on the web to adapt to the flexible nature of our screens, environments and devices.

We can even make use of different CSS media queries to provide more control over our designs based on environments, light contrast and colour schemes.

Though the CSS Media Queries Level 5 Spec is still in draft stages, we can experiment with the prefers-color-scheme (also known as dark mode) media query right now!

Dark Mode featuring Oozing Cheee by OhNoTypeCo

Oozing Dark Mode Text featuring “Cheee” by OhNoTypeCo. View Demo on Codepen.

The above example uses a font called “Cheee” by OhNoTypeCo and demonstrates how to make use of a CSS Transition and the prefers-color-scheme media query to transition the axis of a variable font.

h1 {
  font-family: “Cheee"
  font-variation-settings: "TEMP" 0;
  transition: all 4s linear;
}

@media (prefers-color-scheme: dark) {
  h1 {
    font-variation-settings: "TEMP" 1000;
  }
}

Dark mode isn’t just about changing the colours, it’s important to consider things like weight as well. It’s the combination of the weight, colour and size of a font that determines how legible and accessible it is for the user. In the example above, I’m creating a fun effect – but more practically, dark mode allows us to modify the contrast and styles to ensure better legibility and usability in different environments.

What is even more exciting about variable fonts in this context is that if developers and designers can have this finer control over our fonts to create more legible, accessible text, it also means the user has access to this as well. As a result, users that create their own stylesheets to customise the experience to their specific requirements, can now adjust the pages font weight, width or other available axis to what best suits them. Providing users with this kind of flexibility is such an incredible opportunity that we have never had before!

As CSS develops, we’ll have access to different environmental and system features that allow us to take advantage of our users unique circumstances. We can start to design our typography to adjust to things like screen width - which might allow us to tweak the font weight, width, optical size or other axes to be more readable on smaller or larger screens. Where the viewport is wide we can have more detail, when its smaller in a more confined space we might look at reducing the width of the font—this helps to maintain the integrity of the design as the viewport gets smaller or, to fit text into a particular space.

See the Pen CSS is Awesome - Variable fonts Edition. by Mandy Michael (@mandymichael) on CodePen.

We have all been in the situation where we just need the text to be slightly narrower to fit within the available space. If you use a variable font with a width axis you can slightly modify the width to adjust to the space available, and do so in a way that the font was designed to do, rather than using things like letter spacing which doesn’t consider the kerning of the characters.

Variable Fonts, JavaScript and Interactive Effects

We can take these concepts even further and mix in a little JavaScript to make use of a whole suite of different interactions, events, sensors and apis. The best part about this is whether you are using device orientation, light sensors, viewport resizes, scroll events or mouse movement, the base JavaScript doesn’t really change.

To demonstrate this, we’ll use a straightforward example – we’ll match our font weight to the size of our viewport – as the viewport gets smaller, the font weight gets heavier.

Demo: As the viewport width changes, the weight of the text “Jello” becomes heavier.

We’ll start off by setting our base values. We need to define the minimum and maximum axis values for the font weight, and the minimum and maximum event range, in this case the viewport size. Basically we’re defining the start and end points for both the font and the event.

// Font weight axis range
const minAxisValue = 200
const maxAxisValue = 900

// Viewport range
const minEventValue = 320px
const maxEventValue = 1440px

Next we determine the current viewport width, which we can access with something like window.innerWidth.

// Current viewport width
const windowWidth = window.innerWidth

Using the current viewport width value, we create the new scale for the viewport, so rather than the pixels values we convert it to a range of 0 - 0.99.

const windowSize = (windowWidth - minEventValue) / (maxEventValue - minEventValue)
// Outputs a value from 0 - 0.99

We then take that new viewport decimal value and use it to determine the font weight based on viewport scale.

const fontWeight = windowSize * (minAxisValue - maxAxisValue) + maxAxisValue;
// Outputs a value from 200 - 900 including decimal places

This final value is what we use to update our CSS. You can do this however you want – lately I like to use CSS Custom Properties. This will pass the newly calculated font weight value into our CSS and update the weight as needed.

// JavaScript
p.style.setProperty("--weight", fontWeight);

Finally, we can put all this inside a function and inside an event listener for window resize. You can modify this however you need to in order to improve performance, but in essence, this is all you need to achieve the desired outcome.

function fluidAxisVariation() {
  // Current viewport width
  const windowWidth = window.innerWidth

  // Get new scales for viewport and font weight
  const viewportScale = (windowWidth - 320) / (1440 - 320);
  const fontWeightScale = viewportScale * (200 - 900) + 900;

  // Set in CSS using CSS Custom Property
  p.style.setProperty("--weight", fontWeightScale);
}

window.addEventListener("resize", fluidAxisVariation);

You can apply this to single elements, or multiple. In this case, I’m changing the paragraph font weights and different rates, but also reducing the width axis of the headline so it doesn’t wrap onto multiple lines.

As previously mentioned, this code can be used to create all sorts of really amazing, interesting effects. All that’s required is passing in different event and axis values.

In the following example, I’m using mouse position events to change the direction and rotation of the stretchy slinky effect provided by the font “Whoa” by Scribble Tone.

See the Pen Slinky Text - WHOA Variable font demo by Mandy Michael (@mandymichael) on CodePen.

We can also take the dark mode/colour schemes idea further by making use of the Ambient Light Sensor to modify the font to be more legible and readable in low light environments.

This effect uses Tiny by Jack Halten Fahnestock from Velvetyne Type Foundry and demonstrates how we modify our text based by query the characteristics of the user’s display or light-level, sound or other sensors.

It’s only because Variable fonts give us more control over each of these elements that we can fine-tune the font characteristics to maximise the legibility, readability and overall accessibility of our website text. And while these examples might seem trivial, they are great demonstrations of the possibilities. This is a level of control over our fonts and text that is unprecedented.

Using device orientation to change the scale and weight of individual characters. View on Codepen.

Variable Fonts offer a new world of interactivity, usability and accessibility, but they are still a new technology. This means we have the opportunity to figure out how and what we can achieve with them. From where I stand, the possibilities are endless, so don’t be limited by what we can already do – the web is still young and there is so much for us to create. Variable fonts open up doors that never existed before and they give us an opportunity to think more creatively about how we can create better experiences for our users.

At the very least, we can improve the performance of our websites, but at best, we can make more usable, more accessible, and more meaningful content - and that, is what gets me really excited about the future of web typography with variable fonts.


About the author

Mandy is a community organiser, speaker, and developer working as the Front End Development Manager at Seven West Media in Western Australia. She is a co-organiser and Director of Mixin Conf, and the founder and co-organiser of Fenders, a local meetup for front-end developers providing events, mentoring and support to the Perth web community.

Mandy’s passion is CSS, HTML and JS and hopes to inspire that passion in others. She loves the supportive and collaborative nature of the web and strives to encourage this environment through the community groups she is a part of. Her aim is to create a community of web developers who can share, mentor, learn and grow together.

More articles by Mandy




act

Addiction debates : hot topics from policy to practice / Catherine Comiskey.

Thousand Oaks : SAGE Publishing, 2019




act

Extreme reactions: radical right mobilization in Eastern Europe / Lenka Bustikova, Arizona State University

Dewey Library - JC573.2.E852 B88 2020




act

Socialist Practice: Histories and Theories / Victor Wallis

Online Resource




act

Soft target protection: theoretical basis and practical measures / edited by Ladislav Hofreiter, Viacheslav Berezutskyi, Lucia Figuli and Zuzana Zvaková

Online Resource




act

Developing public sector leadership: new rationale, best practices and tools / Petri Virtanen, Marika Tammeaid

Online Resource




act

Contractual politics and the institutionalization of bureaucratic influence / Glenn R. Parker and Suzanne L. Parker

Dewey Library - JK468.C7 P37 2018




act

Disarming Doomsday: the human impact of nuclear weapons since Hiroshima / Becky Alexis-Martin

Dewey Library - U263.A44 2019




act

India's nuclear proliferation policy: the impact of secrecy on decision making, 1980-2010 / Gaurav Kampani

Dewey Library - UA840.K245 2020