Special/WaveText

WaveText

Each character animates independently with a staggered sine-wave offset, creating a flowing wave effect. Supports per-character color cycling for rainbow variants, and a hover mode that triggers on each individual letter.

import { WaveText } from "@animui/ui"

Basic wave

Wave Text

Rainbow

Rainbow

Hover trigger

Hover each letter

Props

PropTypeDefaultDescription
childrenstringThe text to animate. Must be a plain string.
amplitudenumber10Pixel height of the wave (how far up each character moves).
durationnumber1.2Duration of one wave cycle in seconds.
staggernumber0.08Delay between each character's wave start in seconds.
colorsstring[]Array of CSS colors cycled per character. Omit for single color.
trigger"always" | "hover""always""always" animates continuously; "hover" only on character hover.
as"span" | "p" | "h1" | "h2" | "h3" | "div""span"HTML element to render.
classNamestringAdditional classes.
© 2026 Steal Shadow. MIT License.Report an issue