---
title: Split Text
description: A text effect where the text splits into two when hovered
author: harimanok_
labels: ["requires interaction", "hover"]
---

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

## Installation

<Steps>

<Step>Run the following command</Step>

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

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

<Step>Paste the code</Step>{" "}

Open the newly created file and paste the following code:

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

```

</Steps>

## Credits

Built by [hari](https://github.com/hari)
