05.13 · Text & Typography

Text on a Path

Text travels along a wave, an arc or a circle. Best for badges and seals.

Watch it

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

FOLLOW THE CURVE · On a path

Try it

Change a setting and see the difference as it moves.

Path shape

The curve the text follows.

Speed

How fast the text travels along the curve.

More optionsFewer options

A dashed line marks the curve under the text.

End with a mark such as · so the repeats read well.

Copy the prompt

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

Add text that travels along a curve to [your short phrase]. Define the curve once and attach the text to it so every letter sits on the line, then keep moving the point where the text starts so the letters travel along the curve like a ticker bent into shape. Repeat the phrase, with a separator such as a dot, until it covers the whole curve, and wrap around by exactly one copy so the loop has no jump. Keep the curve gentle enough that letters do not crowd on sharp bends. If the visitor has reduced motion turned on, show the text still on the curve. 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

  • Badges and seals
  • Playful titles
  • Decorations

Avoid on

  • Long text
  • Key information