---
title: Swap Text Card
description: Text inside the card swaps
author: SuminGurung9
labels: ["requires interaction", "hover"]
---

<ComponentPreview name="card-swap-text-card--docs" />

## Installation

<Steps>
<Step>Install dependencies</Step>

This uses [SwapText](/docs/text/swap-text) for the text. Install it by following the instructions [here](/docs/text/swap-text#installation).

<Step>Run the following command</Step>

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

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

<Step>Paste the code</Step>

Open the newly created file and paste the following code:

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

```

</Steps>

## Credits

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

[pipe.com](https://pipe.com/)
