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
VaultScrollCurved Text Recolour
Multi-Cursor TypingBrowse all 182Rising Arch on Scroll
  • 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 Text Recolour

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

  • Section transition
  • Reveal
  • Wipe
  • ScrollTrigger

Features.

  • The next section swells up out of its top edge as a bell-shaped crest
  • The crest carries a copy of the last section's line, so the type changes colour exactly along the curve
  • The copy is laid out by the same CSS as the original, so it stays lined up at any width
  • Nothing is pinned: sections stay in normal page flow
  • Read straight from the scroll: no easing over time, and it runs backwards on the way up
  • Wider bell on phones, so the curve reads on a narrow screen
  • Respects prefers-reduced-motion: straight section edges

How to get it right.

Set the type low

The crest only reaches the bottom 15em of the section before. Type has to sit there for the curve to cut through it: big, and at the foot.

Give neighbours different text colours

The effect is the colour change. Two sections in a row with the same text colour show a crest and no echo.

Use an even fill

The crest is a strip in its section's background, so the two have to match where they meet. A flat colour always does: the demo uses ink, a deeper ink with orange type and a full orange.

Keep the text block simple

Everything in [data-cve-copy] is copied. Avoid ids, form fields and anything that plays: the copy is hidden from assistive tech, but it is still in the page.

Variations.

  • Finish sooner or later — data-au-end="50" or "10"
  • A sharper peak — data-au-width="6"
  • A bell that never flattens — data-au-spread="0"
  • A slower swell — data-au-lift="1"
  • A plain crest — data-au-echo="false"
  • A taller crest — --cve-crest: clamp(8em, 34vh, 22em)
  • More sections — repeat a [data-cve-section] with its crest and copy; give it its own background-color and color
  • A small note — add <p class="cve_note">…</p> before the line in a section; the line stays at the foot

Where it fits.

  • Landing pages — a run of big statements, each handing over to the next
  • Service or chapter lists — one section per item, the name set large
  • Before a footer — the footer rises through the last headline

Frequently asked.

No. It runs on native scroll, and with Lenis once Lenis updates ScrollTrigger.

No. The strip has aria-hidden="true", so screen readers only meet the original.

Call window.au.CurveEcho.refresh(). The copies are made once at init.

Yes. The copy is pinned to the foot of the section before, so only the last 15em matter.

Related components.

NewPro

Arc Collage Hero

Scroll

Pro

Rising Card on Scroll

Scroll

Pro

Outline Paint Reveal

Scroll