05.04 · Text & Typography
Variable Font Morph
A word smoothly turns bold, then light, and leans over. Best for headlines.
Watch it
It moves by itself. Pause it to look closely, or turn on slow motion to see each part of the movement.
Inside, the word slides along one font's range of weights, from regular to black, and rests at a few stops on the way; the dot shows where it is now.
Jumps snaps from one style to the next, as two separate fonts would. Glides moves through every weight in between, because one variable font holds them all.
Try it
Change a setting and see the difference as it moves.
Speed
How long each change of style takes.
Adds a slant to some of the changes.
Copy the prompt
Paste it into an AI assistant such as ChatGPT, Claude or Cursor to build this in your own project.
Add a variable font morph to [your headline or word]. Use a variable font, which holds a whole range of weights in one file, and change the weight smoothly so the letters grow heavier and lighter as you watch, moving through a few styles in turn and resting briefly on each. When the settings include it, the word also leans over during some changes: a font with its own slant does this best, and a slight tilt works for fonts without one. Change the weight through the font itself, not by scaling, so the text stays sharp. If the visitor has reduced motion turned on, keep the word in one style. Match the settings listed below.
Your settings
Replace the words in brackets with your own element. Your settings are added at the end.
Free and open source. If this helped, a star on GitHub helps other people find it.
Star on GitHubWhat it is
The full explanation is in README.md.