---
title: Cycle Text
description: A component that cycles text over certain interval.
author: ll4xmii
---

<ComponentPreview name="text-cycle-text--docs" />

## Installation

<Steps>
<Step>Install dependencies.</Step>
```bash
npm install framer-motion
```

<Step>Run the following command</Step>

It will create a new file called `cycle-text.tsx` inside the `components/animata/text` directory.

```bash
mkdir -p components/animata/text && touch components/animata/text/cycle-text.tsx
```

<Step>Paste the code</Step>

Open the newly created file and paste the following code:

```jsx file=<rootDir>/animata/text/cycle-text.tsx

```

</Steps>

## Credits

Built by [Laxmi Lamichhane](https://github.com/llaxmi)
