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

PropTypeDefaultDescription
childrenstring-The text content to animate
classNamestring-The class name to be applied to the component
delaynumber0Delay before animation starts
durationnumber0.3Duration of the animation
variantsVariants-Custom motion variants for the animation
asElementType"p"The element type to render
by"text" | "word" | "character" | "line""word"How to split the text ("text", "word", "character")
startOnViewbooleantrueWhether to start animation when component enters viewport
animationAnimationVariant"fadeIn"The animation preset to use