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
VaultTextLetter Wave Text
Scribble Text MarksBrowse all 182Staggered Line Reveal
  • 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

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

Setup

npm i gsapregisterPlugin(SplitText)

More like this

  • Stagger
  • Split text
  • Infinite loop
  • 3D

Features.

  • A wave rolls through the headline on a loop, letter by letter
  • At the crest each letter lifts towards you, nudges up and right, grows 5% and turns 10° on its vertical axis
  • Letters brighten from the resting colour to the crest colour and back
  • One sweep of the line takes the same time however long the headline is
  • Split into words first, then letters, so lines only break between words
  • Splits after fonts load, so letters measure against the real typeface
  • Two colours as CSS variables: --sht-rest and --sht-crest
  • Respects prefers-reduced-motion: nothing moves, the headline sits in its resting colour
  • GSAP and SplitText

How to get it right.

Use two close colours

The wave reads as light passing over the letters when the crest is a brighter version of the resting colour. The default is soft orange at rest and oomph orange at the crest. Very different colours turn the shimmer into flashing.

Keep it slow

2 seconds a crest is calm enough to sit on a hero without pulling focus. Below 1 second it starts to feel busy; the wave is at its best when you notice it a moment after the page loads.

One headline per screen

A loop that never stops draws the eye. Give it to the one line that should hold attention, not every heading.

Give it big type

The lift is 12px towards you inside a 1000px perspective. On display type it reads as depth; on small text it's lost.

Variations.

  • Ember — the default: soft orange at rest, oomph orange at the crest
  • Glint — --sht-rest: #bdb6aa and --sht-crest: #fffcf2 for a grey line with a white highlight
  • Slow swell — data-au-duration="3.5" and data-au-pause="0.5"
  • Quick ripple — data-au-duration="1"
  • Your colours — override --sht-bg, --sht-rest and --sht-crest on the section

Where it fits.

  • Hero headlines — a single line that gently stays alive
  • Loading or holding screens — something to look at while content arrives
  • Announcement bars at display size — a launch or sale line
  • Closing statements — the last line before the footer

Frequently asked.

No. The wave repeats forever until destroy() is called. Under reduced motion it never starts.

The script reads --sht-rest and --sht-crest once when it starts. Change the variables, then call window.au.ShimmerText.refresh().

SplitText adds the full text as an aria-label on the headline and hides the letter spans from assistive tech.

Yes. Every [data-sht-text] inside the root gets its own wave.

Set font-size on .sht_text, or on the section to scale the padding with it. Everything is in em.

Related components.

Pro

Multi-Cursor Typing

Load

Pro

Scroll-Lit Word List

Scroll

Pro

Glitch Wipe Reveal

Scroll