āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā ā š shadcn/directory/magicuidesign/magicui/components/text-animate ā āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā
npx shadcn@latest add @magicui/text-animate
</TabsContent>
<TabsContent value="manual">
<Steps>
<Step>Copy and paste the following code into your project.</Step>
<ComponentSource name="text-animate" /><Step>Update the import paths to match your project setup.</Step>
</Steps> </TabsContent> </Tabs>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 |
ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā