Animations/SplitText

SplitText

Split text into words or characters and reveal them with staggered animation on scroll-into-view. Perfect for hero headings and section titles.

import { SplitText } from "@animui/ui"

Word split

Character split

Direction variants

Props

PropTypeDefaultDescription
childrenstringThe text to split and animate. Must be a plain string.
splitBy"words" | "chars""words"Whether to animate per word or per character.
from"bottom" | "top" | "left" | "right" | "fade""bottom"Direction of the enter animation.
staggernumber0.05Delay between each word/char in seconds.
delaynumber0Initial delay before animation starts.
durationnumber0.5Duration of each word/char animation.
oncebooleantrueOnly animate once when scrolled into view.
as"p" | "h1" | "h2" | "h3" | "h4" | "span" | "div""p"HTML element to render.
© 2026 Steal Shadow. MIT License.Report an issue