05.05 · Text & Typography

Text Clip-Path Reveal

Each line of a headline is uncovered in turn. Best for big headlines.

Watch it

It plays by itself. Turn on slow motion to see each part of the movement.

Try it

Change a setting and the animation plays again.

Starts from

The side each line's wipe begins on.

Speed

How long each line takes to uncover.

Delay between lines

Longer delays make the cascade easier to see.

More optionsFewer options

Feel

Smooth slows at the end; Even keeps one pace.

Put each line on a row of its own.

Copy the prompt

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

Add a line-by-line reveal to [your multi-line headline]. Lay out every line in its final place from the start, then uncover each line with a wipe that grows from one side until the whole line shows, starting each line a moment after the one above so the headline cascades in. Nothing moves or changes size; only the visible part of each line grows, so the letter spacing stays exactly as designed. A wipe that slows down as it finishes looks calmer than one that stops abruptly. The text must stay readable by screen readers the whole time. If the visitor has reduced motion turned on, show all the lines at once. 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
  • Taglines
  • Portfolios

Avoid on

  • Body text
  • Buttons and labels