text animations
Text Generate Effect
Words fade in and unblur sequentially — mimicking the token-by-token output of an AI language model. Optional blur filter and fully configurable stagger.
Installation
Usage
Anatomy
Good to know
childrenmust be a plain string. It's split into words.filter(defaulttrue) adds a blur to the fade.- It plays as soon as it mounts. Set
trigger={false}and switch it totrueto start it later, for example withuseInView. - Screen readers read the full text once; the individual words are hidden from them.
- When the user has turned on reduced motion, the text shows in its final state straight away, with no stagger or movement.
Props
Examples
Hero Headline
Large heading generates word-by-word with blur enabled — the classic AI-generated feel for landing page headings.
AI Chat Response
A simulated assistant card regenerates its response text on demand. Toggling trigger off and back on via a key change replays the effect cleanly.
Stacked Content Block
Eyebrow, headline, and body copy each use TextGenerateEffect with different staggerDuration and filter settings, building a layered hero section.