05.14 · Text & Typography

Wavy Text

A wave rolls through the word, letter by letter. Best for playful titles.

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.

Wave height

How far each letter rises and falls.

Speed

How long one rise and fall takes.

Delay between letters

Longer delays stretch the wave across the word.

More optionsFewer options

Short words work best, up to 14 letters.

Copy the prompt

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

Add a wavy text effect to [your word or short title]. Split the text into letters and make every letter bob up and down with the same smooth motion, but start each letter a moment after the one before it, so the high point of the wave rolls from the first letter to the last and around again. Keep the letters on one line, and move them only up and down, never changing their size or spacing. Screen readers should read the word once, not letter by letter. If the visitor has reduced motion turned on, keep the letters still. 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

  • Playful titles
  • Games and kids' sites
  • Loading text

Avoid on

  • Serious content
  • Long text