Skip to content
All terms
Visual stylesTypography/lexicon/variable-font-animation

What is variable font animation?

also known asvariable font morph · variable axis animation · animated weight · font interpolation · OpenType animation

Variable font animation smoothly changes a font's design axes, such as weight, width or slant, over time, so the letters morph from a single file.

Key CSSfont-variation-settings: 'wght' 400transition: font-variation-settings 300msfont-stretch: 100%
Aa
wght 300 → 850 · wdth 100 → 115
01 · Definition

Hover over a wordmark and watch it get heavier, as though the letters had taken a deep breath. No flicker, no swap between two files, no crossfade. The strokes themselves thicken, the counters tighten, and the whole word leans a little closer. That small piece of theatre is variable font animation.

It rests on a font technology, so a short history helps. Variable fonts were introduced as part of OpenType 1.8 in 2016, developed jointly by Adobe, Apple, Google and Microsoft. Instead of shipping a separate file for Light, Regular, Bold and so on, a variable font holds a continuous range along one or more design axes: weight, width, slant, optical size, and sometimes custom axes invented by the type designer. Browsers had broad support by 2018. Once designers realised the values in between were real, valid letterforms, animating along those axes became an obvious idea.

In CSS it is wonderfully direct. You set font-variation-settings, for example a weight of 400 at rest and 800 on hover, and add a transition on that property. The browser interpolates between the two. Because the font engine does the maths, every in-between frame is a properly drawn letter that stays crisp at any size.

This is distinct from kinetic typography, where text moves through space, sliding, fading or spinning. Here, nothing travels. The letterforms change their shape while sitting still. The two combine nicely, but they are different tools.

Practical uses fall into a few buckets:

  • Wordmarks and logos that react on hover
  • Headlines that grow narrower as the viewport shrinks, or heavier as the user scrolls
  • Type specimen and foundry sites showing off a family
  • Interface states, such as a navigation item that gains weight when active

Why does it work? Because it is quiet. A shape-shifting letter feels alive in a way that a slide-in does not, yet it can be done with one font file and one declaration, which is good for performance. Fewer files also mean fewer requests than loading several static weights.

The discipline is harder than the code. Type designers do not necessarily design every weight between the named stops to look good in motion, and some middle values feel awkward or uneven. Staying within a tight band, or between the designed positions, usually looks better than sweeping through the whole range. Limit yourself to two axes at once, such as weight and slant, or weight and width. More than that reads as chaos.

One trap is layout shift. Changing weight changes the width of text, so a heading can push its neighbours around on hover. Fix it by animating width-neutral axes, reserving space, or choosing a family built to hold its advance widths steady. Another trap is applying the effect to body copy. Moving letterforms in a paragraph is distracting and hurts reading, so keep it for display sizes.

Respect accessibility by honouring prefers-reduced-motion and snapping straight to the final state. Make sure the hover effect is matched by a focus state for keyboard users.

The font choice matters. Recursive, Fraunces, Roboto Flex and Inter are good starting points, while many foundry fonts expose only a weight axis, which is fine for simple hover effects.

For an AI prompt, name the font, the axes and ranges, the transition timing, the reduced-motion fallback and the limit to display sizes.

Origin

Variable fonts were introduced as part of OpenType 1.8 in 2016, jointly developed by Adobe, Apple, Google, and Microsoft. Browser support landed across all major engines by 2018, and animated `font-variation-settings` became a recognized technique on type foundry and studio sites soon after.

Use when
  • Logo and wordmark hover states
  • Headlines that respond to scroll, hover, or viewport size
  • Type specimens and foundry sites showcasing a variable family
  • Brands where the wordmark itself is the animated element
Avoid when
  • Body copy, axis animation distracts from reading
  • Long animations, even a 500ms morph on a heading can feel sluggish
  • Fonts whose axes are not designed for smooth interpolation
02 · Do
  • +Use `transition: font-variation-settings 250ms ease`
  • +Stay near named axis stops, designed positions look better than midpoints
  • +Combine 2 axes max (e.g. weight + slant); more reads as chaos
  • +Honor `prefers-reduced-motion` and snap to a static state
03 · Don't
  • −Don't animate body copy axes, only display sizes
  • −Don't interpolate across the full weight range continuously, pick a tight band
  • −Don't use static fonts and fake the morph with multiple files, defeats the point
04 · Prompt your AI

Build a wordmark hover effect using a variable font in React + Tailwind. Font: load a variable font with both weight + width axes (Recursive, Roboto Flex, or Inter Variable) via `@font-face` with `font-weight: 100 900` and (if available) `font-stretch: 75% 125%`. Markup: a single `<a>` or `<h1>` containing the wordmark, e.g. "STUDIO". CSS: ```css .wordmark { font-family: 'Roboto Flex', sans-serif; font-size: clamp(48px, 8vw, 120px); letter-spacing: -0.02em; font-variation-settings: 'wght' 400, 'wdth' 100; transition: font-variation-settings 280ms cubic-bezier(0.22, 1, 0.36, 1); cursor: pointer; } .wordmark:hover { font-variation-settings: 'wght' 800, 'wdth' 110; } @media (prefers-reduced-motion: reduce) { .wordmark { transition: none; } } ``` Do: stay near designed axis stops, combine max 2 axes, use only on display sizes. Don't: animate body copy, interpolate across the full weight range, or fake it with multiple static font files. Acceptance: on hover the letterforms physically morph (get heavier and slightly wider), nothing translates or scales. With reduced-motion, hover snaps to the final state instantly.

Paste into Claude Code, Cursor, or Lovable to apply variable font animation to your project.

06 · Common questions

Variable Font Animation: your questions, answered

What is variable font animation?

It is the technique of animating a variable font's design axes, such as weight, width or slant, over time. The letterforms themselves change shape smoothly, using a single font file instead of swapping between several static ones.

What is the difference between variable font animation and kinetic typography?

Kinetic typography moves text through space with slides, fades and masks. Variable font animation changes the shape of the letterforms while they stay in place. They combine well, but they are separate techniques. Many sites use both at once.

Which fonts are good for variable axis animation?

Recursive, Fraunces, Roboto Flex, Inter and Decovar are all well suited. Many foundry variable fonts expose only a weight axis, which is fine for hover effects but gives you less creative range. Check the axes before choosing.

Does variable font animation work in all browsers?

Yes, in current Chromium, Firefox and Safari. Variable fonts have been broadly supported since about 2018. Older browsers fall back to the nearest static instance, so provide sensible static weights as a safety net. Always test on older devices.

How do I animate a variable font in CSS?

Set font-variation-settings with the axis values you want, then add a transition on that property, around 250ms with an ease curve. Change the values on hover, focus or scroll, and honour reduced motion. Test the fallback state carefully.

People also ask

More quick answers

Is variable font animation bad for performance?

Usually it is fine. It uses one font file and the browser interpolates the shapes. Heavy use on large text blocks can cost repaints, so keep it to short display text.

Does animating font weight cause layout shift?

Often, yes, because heavier letters are wider. Reserve space, animate width-neutral axes or pick a font that keeps advance widths steady across weights.

Can I animate variable fonts on scroll?

Yes. Tie an axis value to scroll progress with JavaScript or scroll-driven animations, but keep the range gentle and test readability at every point.

What is an optical size axis?

It adjusts details like spacing and contrast to suit the size at which the type is set, so small text is sturdier and large text is more refined.

How is this different from text scramble effects?

Text scramble swaps characters in a rapid shuffle before settling on the real text. Variable font animation keeps the same characters and reshapes them smoothly.

07 · Related terms
Free and open source

Found this useful? A GitHub star helps other designers find it.

Star on GitHub