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.

Type

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.

More optionsFewer options

Short words show the change best.

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.

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 GitHub

What it is

The full explanation is in README.md.

Good for

  • Headlines
  • Logos
  • Loading text

Avoid on

  • Body text
  • Small text