Variable font animation
Variable font animation · Animación de fuente variable · Font variabili · Variable type · Kinetic variable font · Peso animato
Letters that change weight, width or slant smoothly without switching typeface. Thanks to variable fonts a headline can swell under the cursor, breathe on its own or follow the scroll letter by letter.
- Era
- 2016 – today
- Origin
- Tipografia digitale (OpenType Font Variations)
- Use
- Mainstream
Live demo
View code
<main><h1><span>P</span><span>E</span><span>D</span><span>A</span><span>L</span><span>A</span></h1><p>Roboto Flex · wght 100 → 1000 · wdth 25 → 151</p></main> body{background:#F4F1EA;color:#111;display:grid;place-items:center;font-family:'Roboto Flex',sans-serif;overflow:hidden}
main{text-align:center}h1{margin:0;font-size:110px;line-height:1;display:flex;justify-content:center}
span{display:inline-block;font-variation-settings:'wght' 600,'wdth' 100}
span:nth-child(3){color:#FF4D2E}
p{margin:8px 0 0;font-size:12px;letter-spacing:.1em;color:#666}
@media (prefers-reduced-motion: no-preference){span{animation:w 2.4s ease-in-out infinite}span:nth-child(2){animation-delay:-.2s}span:nth-child(3){animation-delay:-.4s}span:nth-child(4){animation-delay:-.6s}span:nth-child(5){animation-delay:-.8s}span:nth-child(6){animation-delay:-1s}
@keyframes w{0%,100%{font-variation-settings:'wght' 100,'wdth' 40}50%{font-variation-settings:'wght' 1000,'wdth' 140}}} Characteristics
- Weight going from thin to black without jumps
- A wave running through the letters one after another
- Width or slant reacting to the cursor
- A single font file with wght, wdth, slnt axes
- Smooth, continuous motion, never stepped
Palette
Click a swatch to copy it
Typography
Headings · Roboto Flex Variable font animation
Body · Inter Letters that change weight, width or slant smoothly without switching typeface. Thanks to variable fonts a headline can swell under the cursor, breathe on its own or follow the scroll letter by letter.
Motion
- Easing
sinusoidale continua / ease-in-out- Typical duration
- 1,5–3 s per un ciclo d'onda; 200–400 ms al passaggio del cursore
- Techniques
- font-variation-settings, CSS custom properties animate, @property per interpolare gli assi, animation-delay per lettera, pointermove con distanza dal cursore
Accessibility (reduced motion)
The headline stays still at a medium weight; no wave or cursor reaction.
Prompt for your agent
Copy and paste into your prompt to have an agent or image generator reproduce this style.
For web pages and UI
Design the web page or interface in this style: Variable font animation (Animación de fuente variable). Letters that change weight, width or slant smoothly without switching typeface. Thanks to variable fonts a headline can swell under the cursor, breathe on its own or follow the scroll letter by letter. Characteristics: Weight going from thin to black without jumps, A wave running through the letters one after another, Width or slant reacting to the cursor, A single font file with wght, wdth, slnt axes, Smooth, continuous motion, never stepped. Palette: #F4F1EA, #111111, #FF4D2E, #2E5BFF. Typography: headings in Roboto Flex, body text in Inter (Google Fonts or equivalents). Mood: bold, energetic, clean. Motion: easing sinusoidale continua / ease-in-out, typical duration 1,5–3 s per un ciclo d'onda; 200–400 ms al passaggio del cursore; techniques: font-variation-settings, CSS custom properties animate, @property per interpolare gli assi, animation-delay per lettera, pointermove con distanza dal cursore. With prefers-reduced-motion: The headline stays still at a medium weight; no wave or cursor reaction. References: OpenType Font Variations (2016), Roboto Flex, Google Fonts Knowledge, Siti di fonderie digitali.
Relations
Derives from
Similar to
References
- OpenType Font Variations (2016)
- Roboto Flex
- Google Fonts Knowledge
- Siti di fonderie digitali