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.
Inside, each letter is its own piece: the old ones slide out one way, the new ones in from the other. A delay between letters makes them start one by one, like a wave.
Swaps at once changes the whole word in one jump. Morphs slides the old letters out and the new ones in, so each change is easy to follow.
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.
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.
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.