---
title: Mirror Text
description: An effect where given text has the mirror/clone text and follows it.
labels: ["requires interaction", "hover"]
author: harimanok_
---

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

## Installation

<Steps>

<Step>Update `tailwind.config.js`</Step>
```js
theme: {
    extend: {
     colors: {
        foreground: "hsl(var(--foreground))",
     }
    },
  },
```

<Step>Run the following command</Step>

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

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

<Step>Paste the code</Step>

Open the newly created file and paste the following code:

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

```

</Steps>

## Credits

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