Installation
npx shadcn@latest add @iconiq/reveal-textProps
RevealText
Staggered text reveal that animates each word or character upward with blur and opacity, with optional viewport-triggered playback and reduced-motion fallbacks.
textstring | string[]Required
asReact.ElementTypeDefault "span"
classNamestringsplit"word" | "char"Default "word"
staggernumberDefault 0.09
delaynumberDefault 0
blurnumberDefault 12
yOffsetstring | numberDefault "40%"
spring{ stiffness?: number; damping?: number; mass?: number }oncebooleanDefault true
whileInViewbooleanDefault false
childrenReact.ReactNodeReduced-motion users receive a shorter opacity-only reveal while preserving readable timing.
Duplicate words or characters on the same line receive stable keys so repeated units still animate independently.
Reveal transition behavior
Each unit animates y, opacity, and filter on independent timelines so the blur fade can trail slightly behind the spring settle.
Word mode preserves spaces between tokens with non-breaking space spans.
Character mode uses Array.from so multi-byte characters split correctly.
Registry bundle
Install the exact registry entry shown on the right when you want the component file and its declared runtime dependencies together.
Dependencies: motion.