Introducing Magic UI Pro - 50+ blocks and templates to build beautiful landing pages in minutes.


Docs
Text Animate

Text Animate

A text animation component that animates text using a variety of different animations.

Blur in by character

Installation

npx shadcn@latest add "https://magicui.design/r/text-animate"

Examples

Blur In by Text

Blur in text

Slide Up by Word

Slide up by word

Scale Up by Text

Scale up by text

Fade In by Line

Fade in by line as paragraphFade in by line as paragraphFade in by line as paragraph

Slide Left by Character

Slide left by character

Props

PropTypeDescriptionDefault
childrenstringThe text content to animate
classNamestringThe class name to be applied to the component
delaynumberDelay before animation starts0
durationnumberDuration of the animation0.3
variantsVariantsCustom motion variants for the animation
asElementTypeThe element type to render"p"
by"text" | "word" | "character" | "line"How to split the text ("text", "word", "character")"word"
startOnViewbooleanWhether to start animation when component enters viewporttrue
animationAnimationVariantThe animation preset to use"fadeIn"