---
title: TextAnimate
description: A framer motion text animation component
component: true
links:
---

<ComponentPreview
  name="text-animate-demo"
  className="[&_.preview>[data-orientation=vertical]]:sm:max-w-[70%]"
  description="All variations"
/>

## Installation

<Tabs defaultValue="manual">

<TabsList>
  <TabsTrigger value="manual">Manual</TabsTrigger>
</TabsList>

<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>

## Usage

```tsx
import { TextAnimate } from "@/components/ui/text-animate"
```

```tsx
<TextAnimate text="Roll In" type="rollIn" />
```
