text animations
Splitting Text
Text is split into characters, words, or lines and each segment animates in with a staggered entrance. Five built-in presets — fade, slide-up, slide-down, blur, and scale.
Installation
Usage
Anatomy
Good to know
childrenmust be a plain string.splitByis"chars","words"or"lines".presetis"fade","slide-up","slide-down","blur"or"scale".- 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 pieces 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
Word-level slide-up with a spring transition — the standard pattern for landing page headings.
Preset Explorer
Buttons switch the preset and re-mount the component via key. Demonstrates all five presets on character-level splitting.
Stacked Content Block
Three SplittingText instances — eyebrow, headline, body — each using a different preset and split granularity to build a complete hero section.