text animations
Rolling Text
Letters roll in from below (or above) with 3D perspective rotation on mount. Each character animates independently with a configurable stagger.
Installation
Usage
Anatomy
Good to know
childrenmust be a plain string. It's split into letters.- It plays once when it mounts.
delayanddurationare in seconds. directionis"up"or"down".- Screen readers read the full text once; the individual letters 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
Letters roll upward with a tight stagger on mount — a clean, modern reveal for landing page headings.
Stacked Display Lines
Three lines roll in with incremental delay offsets, building a bold typographic lockup sequentially.
Navigation Links
Nav items roll in from above (direction="down") with per-item delays. Combine with offset delay to stagger across the nav row.