Variable fonts are perhaps the biggest thing to happen to web typography since the advent of web fonts. They are poised to add another layer of flexibility to the web designer’s toolbox. Because these fonts can contain numerous styles within a single file, they open up new possibilities in special effects and efficiency.
While the number of available variable font packages is growing, the selection isn’t huge just yet. And then there’s the whole issue regarding lack of support in older browsers. But those limitations aren’t going to last much longer. Thus, it’s a good idea to study up now.
We’ve collected some fantastic variable font examples to help demonstrate what is possible. Just note that to actually see these examples in their full glory, you’ll need to use the latest version of Chrome, Edge, Firefox, Opera, or Safari.
Running Free by Laurence Penney
Glyphs are kind of a big deal these days, with the likes of Font Awesome and Dashicons being in such wide use. In this example, a variable font with a single glyph of an emoji horse was used to create a nifty animation. Through the use of CSS
font-variation-settings, the author was able to ensure an ultra-smooth effect.
See the Pen Muybridge galloping horse by Laurence Penney
Animate Your (Font) Weight by Michelle Barker
One of the big advantages of having the entirety of a font’s styles in one file is that you can transition between them in a snap. In this case, we see a highly-detailed and mesmerizing animation between different weights of the IBM Plex Sans font.
See the Pen Variable font animation by Michelle Barker
Interactive Art by Mark Frömberg
Here’s an example of a variable font being used as part of a larger piece of online art. Instead of animating a single word or headline, this snippet mimics a poster – albeit an animated one. The transition from hollow characters to filled (and back again) is truly slick. The sequencing is spot on. Years ago, this might have taken hours of tedious work in Flash to accomplish.
See the Pen Variable Font Experiment No.2 by Mark Frömberg
Style Slider by Frida Nyvall
Perhaps no snippet in this collection better demonstrates what a variable font is than this one. Use the sliders at the bottom of the screen to add custom weight, stretch and sizing to the Venn VF font. Notice the ease with which the settings changes are displayed.
See the Pen Variable font demo by Frida Nyvall
Have It Your Way by Chris Coyier
At first glance, this example looks like a nicely formatted poem. But there’s more than just a basic title and text here. Click on the “Jigger the First Stanza” and “Rejigger Title” buttons to the right, and you’ll be in for a treat. Font styles change fluidly and instantaneously. And it’s a great demonstration of how individual characters can be targeted as well.
See the Pen Goblin Market with Variable Fonts by Chris Coyier
The Full Effect by Juan Fuentes
See the Pen Variable Fonts | Compressa by Juan Fuentes
So Slinky by Jérôme Sprenger Sèvegrand
Let’s close things out with something unique. This snippet uses the WHOA variable font to create an incredible 3D effect that shifts the view of this outline text based on your cursor position. Again, this is something that, a few years ago, would require some serious animation software to achieve. Now, the different perspectives are built right into the font. From there, it’s a matter of using some clever coding to put it in motion.
See the Pen Slinky Text – WHOA Variable font demo by Jérôme Sprenger Sèvegrand
A New Era in Typography
With variable fonts, web typography has become an even greater resource for creating a compelling UX. Thanks to their ability to instantly change styles and target specific characters through data splitting, a whole new level of special effects are possible.
As the examples above demonstrate, there is plenty of room for creativity. And what’s really exciting is that the fonts themselves have so many goodies baked right in.
That being said, we’re really just beginning to scratch the surface of what these fonts can do. It will be amazing to see what the future brings.
- Set Your Text in Motion with These Dazzling Effects
- 10 CSS Code Snippets for Responsive Text Techniques
- 10 Code Snippets for Creating Stunning Text Masking Effects
- Code Snippets That Demonstrate the Repelling Effect in Web Design