Skip to content
IndexRequest a UIAboutContact

Text on a Path

A line of text runs along a wave, an arc or a loop using SVG textPath, with a speed control and pause.

Open alone ↗

AI prompt

PROMPT: PASTE INTO YOUR AI IMAGE OR VIDEO TOOL
Kinetic typography poster of the repeating words Keep moving, keep making set along a flowing S-shaped wave across the frame, bold geometric sans-serif letters in near-black on warm off-white, a small coral dot separating each repeat, letters rotating smoothly to follow the curve, generous margins, confident and playful. Variants: the text circling in a full loop, and following a gentle arc. Negative: distorted glyphs, overlapping letters, gradients, clutter, watermark. Reduced motion: static poster.

About this pattern

Definition

SVG textPath sets text along any curve. Animating its startOffset slides the text along the path like a marquee on a roller coaster. It is a light way to give type motion and shape without images, and the text stays real, selectable text.

When to use it

  • Draw a path, then reference it from a textPath element with href.
  • Move the text by animating the startOffset attribute.
  • Repeat the phrase with a separator so the path never looks empty.
  • Use short, bold phrases; curves make long text hard to read.

What the controls do

  • Three curve buttons, a Speed slider and Pause.

Motion & timing

  • The text slides continuously along the curve.
  • Reduced motion: no sliding; the text is static and Pause is disabled.

Tips & variations

  • Provide the same text elsewhere on the page for screen readers.
  • Add a pause control for anything that moves continuously.

Code of this live preview

HTML
<div class="bx"><div class="pre" id="pre" role="group" aria-label="Curve"><button data-p="0" aria-pressed="true">Wave</button><button data-p="1" aria-pressed="false">Arc</button><button data-p="2" aria-pressed="false">Loop</button></div><svg class="tp" viewBox="0 0 330 120" role="img" aria-label="Text moving along a curve: Keep moving, keep making"><path id="pth" fill="none" stroke="#e0e0dc" stroke-width="1"/><text><textPath id="tx" href="#pth"></textPath></text></svg><div class="two"><label class="rw">Speed <b id="sv">40</b><input id="sp" type="range" min="0" max="100" value="40"></label><button class="mini" id="pz" type="button">Pause</button></div></div>

Related patterns

Marquee Ticker with Pause

↗
Marquee Ticker with PauseMotion & Transitions

Wave, Bounce & Tilt Letters

↗
Wave, Bounce & Tilt LettersKinetic Typography

Scramble Text Decode

↗
Scramble Text DecodeKinetic Typography