Get the kit
Components / Text animationsv1.0.0 · updated 2026-10-08

Split Text

Free · MIT

Splits a line into characters or words and animates each one in when the line enters the viewport. Duration is counted in frames, the stagger in milliseconds, and the curve is one of the four Brazen motion tokens.

textstaggerscroll
Free

Refuse to whisper

Customize
Split by
From
Curve
Accent

Install

$ npm install motion
  1. Copy SplitText.tsx from the Code tab into components/brazen/.
  2. Make sure the Brazen tokens are loaded (tokens.css); colours and timing come from them.
  3. Import it and pass the props below.

Props 6

PropTypeDefaultDescription
textstring—The line to animate.
by"chars" | "words""chars"What to split on.
durationnumber36Per-piece duration, in frames at 60fps.
staggernumber30Delay between pieces, in ms.
from"up" | "down" | "left" | "right""up"Entry direction.
curve"out" | "brash" | "punch" | "leave""out"Brazen easing token.

Features

  • Chars or words
  • Four entry directions
  • Runs once, in view
  • Screen readers get the whole line

Dependencies

  • motion@^14.0.0
  • react@>=19 peer

Works with

  • React 19
  • Next.js 15+
  • TypeScript

Reduced motion

Renders the full line immediately with no movement.

Related