05.07 · Text & Typography

Text Morphing

One word changes into the next, letter by letter. Best for short labels.

Watch it

It moves by itself. Pause it to look closely, or turn on slow motion to see each part of the movement.

Try it

Change a setting and see the difference as it moves.

Slide direction

Which way the old letters leave and the new ones arrive.

Delay between letters

A small delay sends the change across the word as a wave.

Speed

How long each letter takes to slide.

More optionsFewer options

Time on each word

How long each word stays still to be read.

Words of the same length morph most cleanly.

Copy the prompt

Paste it into an AI assistant such as ChatGPT, Claude or Cursor to build this in your own project.

Add a letter-by-letter morph to [the word that should change, and the words it cycles through]. Split each word into letters. To change words, slide the current letters out of sight in one direction, then slide the next word's letters in from the opposite side; a small delay between letters, when the settings include one, sends the change across the word like a wave. Hold each word long enough to read, then morph to the next and repeat the list. Words of similar length look cleanest. Screen readers should hear each new word once, not its letters. If the visitor has reduced motion turned on, swap the words without movement. 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

  • Short labels
  • Status words
  • Hero headlines

Avoid on

  • Long words
  • Sentences