reframe/ui
reframe/ui

Command Palette

Search for a command to run...

Text Animate

Your not ready For reframe/ui premium components

Installation

Install Dependencies

Copy and Paste the component

@/components/reframe-ui/text-animate.tsx

Usage

Props

NameTypeDefaultRequiredDescription
childrenstring-YesThe 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.
classNamestring-NoClass name for the container element.
preset'blur' | 'fade-in-blur' | 'scale' | 'fade' | 'slide'fadeNoBuilt-in animation presets for the segments.
delaynumber-NoDelay (seconds) before child animations begin.
speedRevealnumber1NoMultiplier controlling stagger speed across segments (higher = faster).
speedSegmentnumber1NoMultiplier controlling per-segment animation duration (higher = faster).
triggerbooleanNoWhether the animation is active (renders with AnimatePresence).
onAnimationComplete() => void-NoCalled when the animation completes.
onAnimationStart() => void-NoCalled when the animation starts.
segmentWrapperClassNamestring-NoOptional extra class applied to each segment wrapper.
containerTransitionTransition-NoTransition override merged into the container variants.
segmentTransitionTransition-NoTransition override merged into each segment’s variants.
styleReact.CSSProperties-NoInline styles for the container element.
© Copyright 2025. All rights reserved.Built by @thommysart