cnippet/ui
  1. motion
  2. text animations
  3. rolling text

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

  • children must be a plain string. It's split into letters.
  • It plays once when it mounts. delay and duration are in seconds.
  • direction is "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.

Nav items roll in from above (direction="down") with per-item delays. Combine with offset delay to stagger across the nav row.