---
title: Score Card
description: This Score-card component is designed to track and update scores for two teams in real-time with a simple animation showing which team scored.
author: m_jinprince
labels: ["requires interaction", "Click score button"]
---

<ComponentPreview name="card-score-card--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 `score-card.tsx` inside the `components/animata/card` directory.

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

<Step>Paste the code</Step>

Open the newly created file and paste the following code:

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

```

</Steps>

## Credits

Built by [Prince Yadav](https://github.com/prince981620)
