Getting Started
Components
Special Effects
Animations
Text Animations
Backgrounds
Blur in by character
Slide up by word
Scale up by text
Fade in by line as paragraph Fade in by line as paragraph Fade in by line as paragraph
Slide left by character
Blur in by character
Blur in by character
Wavy Motion!
import { TextAnimate } from "@/components/ui/text-animate"
<TextAnimate animation="blurInUp" by="word">
Blur in by word
</TextAnimate>
Prop | Type | Default | Description |
---|---|---|---|
children | string | - | The text content to animate |
className | string | - | The class name to be applied to the component |
delay | number | 0 | Delay before animation starts |
duration | number | 0.3 | Duration of the animation |
variants | Variants | - | Custom motion variants for the animation |
as | ElementType | "p" | The element type to render |
by | "text" | "word" | "character" | "line" | "word" | How to split the text ("text", "word", "character") |
startOnView | boolean | true | Whether to start animation when component enters viewport |
once | boolean | false | Whether to animate only once |
animation | AnimationVariant | "fadeIn" | The animation preset to use |