Text Animate

Free

Preview live, install via shadcn or copy the source.

Installation

Install via shadcn

This will install the component and its dependencies automatically.

Usage

text-animate-usage.tsxTSX

Props

NameTypeDefaultRequiredDescription
childrenstringYesThe full text to animate.
per'word' | 'char' | 'line'wordNoHow to segment the text for animation.
askeyof React.JSX.IntrinsicElementspNoHTML tag to render as.
variants{ container?: Variants; item?: Variants }NoOverride Motion variants for the container and each segment.
classNamestringNoClass name for the container element.
preset'blur' | 'fade-in-blur' | 'scale' | 'fade' | 'slide'fadeNoBuilt-in animation presets for the segments.
delaynumber0NoDelay (seconds) before child animations begin.
speedRevealnumber1NoMultiplier controlling stagger speed across segments (higher = faster).
speedSegmentnumber1NoMultiplier controlling per-segment animation duration (higher = faster).
triggerbooleantrueNoWhether the animation is active (renders with AnimatePresence).
onAnimationComplete() => voidNoCalled when the animation completes.
onAnimationStart() => voidNoCalled when the animation starts.
segmentWrapperClassNamestringNoOptional extra class applied to each segment wrapper.
containerTransitionTransitionNoTransition override merged into the container variants.
segmentTransitionTransitionNoTransition override merged into each segment’s variants.
styleReact.CSSPropertiesNoInline styles for the container element.
© reframe/ui 2026Built by @thommysart
More in Text Animations