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.
Inside, the text is attached to a curve, drawn bold here. The phrase is repeated, and each tick marks where one copy starts; they all slide along the curve together.
Straight line slides the same words along a flat line, like a ticker. On a path bends them around the curve, so every letter follows its shape.
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.
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.
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.