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
VaultTextFill Wave Text Reveal
Hover Image AccordionBrowse all 182Filterable Grid
  • 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

Fill Wave Text Reveal

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
  • SplitText

Setup

npm i gsapregisterPlugin(ScrollTrigger, SplitText)

More like this

  • Reveal
  • Fill
  • Split text
  • ScrollTrigger

Features.

  • Each headline starts faded and fills with colour from left to right the first time it scrolls into view
  • One headline per screen; add or remove panels freely
  • A thin orange band rides the leading edge of the fill
  • Each line sweeps on its own; the second follows 0.35s behind the first
  • Each line hugs its own text, so the sweep never wastes time crossing empty space
  • First line flush left, later lines flush right
  • Plays once, on a long expo.out that starts fast and settles
  • Re-splits on resize; if it has already played, the new lines land filled
  • One CSS gradient per line, driven by a single variable: no extra elements
  • Respects prefers-reduced-motion: nothing is split and the headline shows filled
  • GSAP, ScrollTrigger and SplitText

How to get it right.

Two short lines

The layout is built for a headline in two lines, set with <br>: line one left, line two right. A third line also sits right. Narrow screens may wrap a line again; each wrapped line still sweeps on its own.

Keep the faded colour visible

--fwt-faded is what readers see before the sweep. It should be faint, but not invisible against --fwt-bg, so the headline is there to read before it fills.

Match the band to the brand

The band is --fwt-band, the orange accent by default. data-au-band sets its width; 0 removes it for a clean edge.

Give it time

2.5s per line feels like light spreading. Under a second it becomes a wipe.

Variations.

  • Aurora — the default: faded ash to cream on ink, with an orange band
  • Clean wipe — data-au-band="0"
  • Wide glow — data-au-band="16" and --fwt-band: #f68e66
  • Together — data-au-lag="0": both lines sweep at once
  • Your colours — override --fwt-bg, --fwt-faded, --fwt-filled and --fwt-band on the section

Where it fits.

  • Statement sections — one line about what you do, between hero and work
  • Chapter openers — on long-form pages
  • Launch pages — the headline the whole page leads up to

Frequently asked.

No. The trigger is set to once; after the sweep the headline stays filled.

The script splits after fonts load and re-splits 150ms after each window resize, so lines follow the new wrapping.

SplitText adds the full headline as aria-label and hides the line wrappers. The text itself stays real text, painted by background-clip: text.

Yes. All four colours are variables on .fwt_section. The script only moves --fwt-pos and sets --fwt-width.

Related components.

Pro

Multi-Cursor Typing

Load

Pro

Scroll-Lit Word List

Scroll

Pro

Glitch Wipe Reveal

Scroll