Platform
VaultVault
  • Free15
  • Navigation19
  • Buttons9
  • Scroll55
  • Text27
  • Sliders & marquees19
  • Gallery & images67
  • Cursor24
  • Page transitions10
  • Loaders2
  • Backgrounds10
  • UI components33
ButtonsPart of ProButtons
IconsPart of ProIcons
  • Interface Essentials144
  • Social Icons69
  • Payment Badges41
SavedPart of ProSaved
Support
DocumentationDocumentation
MCP serverMCP server
SettingsSettings
VaultTextCurved Path Text
Rolling OdometerBrowse all 182Staircase Letter Pop
  • Free15
  • Navigation19
  • Buttons9
  • Scroll55
  • Text27
  • Sliders & marquees19
  • Gallery & images67
  • Cursor24
  • Page transitions10
  • Loaders2
  • Backgrounds10
  • UI components33
  • Interface Essentials144
  • Social Icons69
  • Payment Badges41
Sign inSign in

Start free. The code for 15 components, no card needed.

Get 15 free

Curved Path Text

This one is locked. Become a member to open the code for it and the rest of the Vault.

See plansTry the 15 free ones

What you'll need.

Install

  • gsap
  • ScrollTrigger

Setup

npm i gsapregisterPlugin(ScrollTrigger)

More like this

  • Pinned
  • Reveal
  • ScrollTrigger
  • Sticky
  • SVG

Features.

  • A sentence laid letter by letter along an invisible curve: a climb, a soft dip, a peak and a long fall
  • A pinned full-screen stage while you scroll through a tall track
  • Words bloom in from a blur in reading order as the scroll reaches them, and fade back out when you scroll up
  • Every word plays its full bloom, even on a fast scroll: scroll only decides which words are shown
  • Letters keep their natural spacing; the sentence is justified across the curve by the word gaps alone
  • Spacing is corrected for the bends, so letters on the outside of a curve don't look splayed and those on the inside don't look jammed
  • Type and curve scale together; wider or taller screens show more or less around the curve, centred
  • Re-measures once fonts load, so the layout uses the real typeface
  • Screen readers get the sentence once, not letter by letter
  • Respects prefers-reduced-motion: one screen, every word in place
  • GSAP and ScrollTrigger only

How to get it right.

Write to the curve's length

The sentence is laid across the whole curve. Around 100 characters fills it; the word gaps can only stretch or squeeze a little, so a much shorter sentence sits centred with space at both ends, and a much longer one runs off the end.

One sentence, plain text

[data-pth-text] is read as plain text. Line breaks and extra spaces collapse into single spaces; markup inside it is ignored.

Set the pace with the track

data-au-track is how much scroll the reveal takes, in vh. 300 gives each word a beat; drop towards 200 for a quick read, raise it for long sentences.

Keep the blur soft

5px reads as a bloom. Past 10px the words arrive as smudges and the reverse looks muddy.

Variations.

  • Default — 300vh track, 0.6s bloom from 5px blur
  • Quick read — data-au-track="180"
  • Crisp fade — data-au-blur="0" for a plain fade per word
  • Slow bloom — data-au-duration="1.2" and data-au-blur="8"
  • Your colours — override --pth-bg and --pth-fg on the section

Where it fits.

  • Storytelling pages — one sentence that carries the reader between chapters
  • Brand statements — a manifesto line given a full screen of its own
  • Travel, nature and journey themes — anything that winds, flows or meanders
  • Product launches — the one line you want read slowly

Frequently asked.

Yes: CURVE at the top of the script is an SVG path in a 1600 × 900 design space. Keep its ends inside the frame, or the first and last letters can be cut off.

The letter size is FONT (48) at the top of the script, in design units. A bigger size needs a shorter sentence to fit the curve.

The curve is laid out in a 1600-wide design space that scales to the screen width, so the letters shrink with it: at 375px wide they render at about 11px. It reads as a shape more than as text there. For small screens, use a shorter sentence with a bigger FONT, or show the plain paragraph instead.

That's the fallback before the script runs. If it stays, check the console for an [oomph] Path Text message.

The stage is an SVG with role="img" and the whole sentence as its aria-label; the letters themselves are hidden from screen readers.

Yes. With Lenis, update ScrollTrigger on Lenis's scroll event, as you would for any ScrollTrigger.

Related components.

Pro

Multi-Cursor Typing

Load

Pro

Scroll-Lit Word List

Scroll

Pro

Glitch Wipe Reveal

Scroll