Text Ripple

A 3D character ripple with a traveling color crest, CSS-only and GPU-light.

textripple3dheadlineanimationtypographywave
Text Ripple component preview

Props

PropTypeDefaultDescription
textstring-The string to render.
askeyof React.JSX.IntrinsicElements"span"Tag rendered as the outer element.
durationnumber1Crest travel duration for one character, in seconds.
spreadnumber1How tightly the crest packs across characters (0.4–3). Higher = faster stagger.
zDistancenumber10Forward depth of the crest in CSS pixels.
xDistancenumber2Lateral nudge of the crest in CSS pixels.
yDistancenumber-2Vertical nudge of the crest in CSS pixels.
scaleDistancenumber1.1Peak scale at the crest.
rotateYDistancenumber10Peak Y rotation at the crest, in degrees.
baseColorstringthemeResting fill color. Omit for theme auto (zinc in light, softer zinc in dark).
rippleColorstringthemeCrest highlight color. Omit for theme auto (near-black in light, white in dark).
pausedboolean-Force the infinite loop paused. When omitted, it runs forever while visible and auto-pauses off-screen or when the tab is hidden.