Presets

Wave text animation

Letters bobbing up and down one after another so a ripple travels through the word.

CSSTailwindReactGIFMP4
trigger: loop
00.000 / 1.400s
timing
style
content
20 max

npm i motion · the component uses motion/react

How it works

This wave text animation lifts each letter of a word in turn, so a ripple travels from the first character to the last and starts again. The default text is "Loading...", and it works well as a text-only loader, a playful heading or a game title.

The text is split into one span per character, each set to display: inline-block, because transforms do not apply to plain inline elements. Every span runs the wave keyframe: translateY(0) at 0%, 40% and 100%, and translateY(-Wave height px) at 20%. Delays of index times Stagger shift each letter's hop slightly later than the previous one. Since each letter only moves during the first 40% of its cycle, the wave has a short rest before it repeats.

Parameters: Text (up to 20 characters), Font size, Color, Wave height, Duration and Easing, plus Stagger. Wave height around a third of Font size gives a clear but readable wave. For a smooth continuous ripple, set Stagger so the whole word finishes within about half the Duration. Bold, rounded typefaces suit this effect better than thin serifs.

Splitting text into spans would make screen readers spell it letter by letter. The preset avoids that: the wrapper has aria-label with the full text, and every letter span is aria-hidden. Only transform animates, so even long words stay smooth.

How do I make the wave bigger or faster?

Wave height sets how far each letter rises, and Duration sets the length of one full cycle. Stagger controls how quickly the wave crosses the word: smaller values make letters move almost together, larger ones spread the ripple out. Changing Duration without Stagger changes the rest time between waves.

Why is every letter wrapped in its own element?

CSS cannot animate individual characters of a text node, so each letter needs its own box with its own delay. The spans use display: inline-block so transforms work on them. The React version renders them with a map over the split string, so you can pass any text as a prop.

Is a split-letter animation accessible?

It can be. Screen readers would otherwise read each span separately or spell the word. The preset puts the complete text in aria-label on the wrapper and hides the letter spans with aria-hidden, so it is announced as one word. If the text is a heading, put the aria-label on the heading element.

relatedMore like this

all text effects →
Hello, world!
01 Typewriter effect loop
GLITCH
02 Glitch text loop
03 Text reveal once
04 Spinner loop
05 Gradient shift button loop
06 Border draw button hover

Export

format
height

480p max · small watermark · 3 per day · remove limits