# Spring Scale In

Words pop in one by one with an overshoot spring scale effect.

> For the complete documentation index, see [llms.txt](/llms.txt). Markdown variants are available by appending `.md` to any URL or sending an `Accept: text/markdown` header. An agent skill is available at [/.well-known/agent-skills/site-skill.md](/.well-known/agent-skills/site-skill.md).

## Installation

  <TabsTrigger value="cli">Command</TabsTrigger>
  <TabsTrigger value="manual">Manual</TabsTrigger>

```bash
npx shadcn@latest add @framecn/spring-scale-in
```

<Step>Copy and paste the following code into your project.</Step>

<Step>Update the import paths to match your project setup.</Step>

## Usage

```tsx
import { SpringScaleIn } from "@/components/framecn/spring-scale-in";
```

```tsx
<SpringScaleIn text="Spring scale in" />
```

## API Reference

### SpringScaleIn

| Prop               | Type     | Default             |
| ------------------ | -------- | ------------------- |
| `text`             | `string` | `"Spring scale in"` |
| `staggerDelay`     | `number` | `3`                 |
| `scaleFrom`        | `number` | `0.7`               |
| `fontSize`         | `number` | `72`                |
| `color`            | `string` | `"#171717"`         |
| `fontWeight`       | `number` | `600`               |
| `speed`            | `number` | `1`                 |
| `fps`              | `number` | `30`                |
| `durationInFrames` | `number` | `90`                |
| `className`        | `string` | `-`                 |

## Notes

  The animation uses `cubic-bezier(0.34, 1.56, 0.64, 1)` which produces a
  natural overshoot past scale 1 before settling, giving each word a satisfying
  pop-in feel.