cnippet/ui
  1. motion
  2. text animations
  3. text generate effect

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

  • children must be a plain string. It's split into words.
  • filter (default true) adds a blur to the fade.
  • It plays as soon as it mounts. Set trigger={false} and switch it to true to start it later, for example with useInView.
  • 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.