Atelier UI

Search components…

Search components…

Word Reveal

A headline whose words blur, slide and fade in one by one when scrolled into view, with replay.

Edit in sandbox

Copy a prompt for your AI coding tool with the source, dependencies and usage

Props

WordRevealProps

Also accepts all props of Omit<React.ComponentProps<"p">, "children">

PropTypeDefaultDescription
text* requiredstring—The sentence to reveal
staggernumber70Delay between words in ms
durationnumber700Duration of each word's transition in ms
blurnumber8Blur radius in px before a word appears
offsetnumber14Vertical offset in px before a word appears
replayKeynumber | string—Change this value to hide the words and play the reveal again
thresholdnumber0.4Fraction of the element that must be visible to start
oncebooleantrueOnly play once. If false the words hide again when scrolled out of view

Install

$ npx shadcn@latest add https://chromotion.dev/r/word-reveal.json

More like this