# Zoom Through Transition

Aggressive scale-in through an element to the next scene.

> 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/zoom-through-transition
```

<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 { ZoomThroughTransition } from "@/components/framecn/zoom-through-transition";
```

```tsx
<ZoomThroughTransition />
```

## API Reference

### ZoomThroughTransition

| Prop               | Type        | Default           |
| ------------------ | ----------- | ----------------- |
| `children`         | `ReactNode` | `-`               |
| `targetScale`      | `number`    | `20`              |
| `transformOrigin`  | `string`    | `"center center"` |
| `background`       | `string`    | `"white"`         |
| `speed`            | `number`    | `1`               |
| `fps`              | `number`    | `30`              |
| `durationInFrames` | `number`    | `90`              |
| `className`        | `string`    | `-`               |

## Notes

  The transition scales through a given element to create an aggressive zoom
  effect. Higher scale values create more dramatic transitions.