Animations/Reveal Text

Reveal Text

Animate text or any content into view as it enters the viewport. Supports four directions, custom delay, and stagger for multiple children.

import { RevealText } from "@animui/ui"

Basic

↑ animated on scroll

Directions

Stagger

Props

PropTypeDefaultDescription
childrenstringThe text to animate on reveal. Must be a plain string.
direction"up" | "down" | "left" | "right""up"Direction the content slides in from.
splitBy"word" | "char" | "line""word"How to split the text for staggered reveal.
staggernumber0.04Delay between each split unit in seconds.
delaynumber0Initial delay in seconds before the animation starts.
oncebooleantrueWhether the animation fires only once.
classNamestringAdditional classes for the wrapper.
© 2026 Steal Shadow. MIT License.Report an issue