# Zoom Past

> Words fly toward you and the next one arrives behind.

## Spec sheet

| | |
| --- | --- |
| Access | Free: no account, free for commercial use |
| Shelf | Text Animations › Transitions |
| Live preview | https://uibrik.com/components/zoom-past |
| Writes | 1 file into `components/uibrik/zoom-past/` |
| Packages | `motion` (the CLI installs them) |
| Needs | React 19, Tailwind CSS v4, a project set up with `npx shadcn@latest init` |
| Theme | Reads the shadcn tokens and follows class-based dark mode ([theming](https://uibrik.com/docs/theming.md)) |
| Updated | Nov 9, 2026 |

## Add it

```bash
npx shadcn@latest add https://uibrik.com/r/zoom-past.json
```

With the `@uibrik` namespace in `components.json` ([setup](https://uibrik.com/docs/installation.md)): `npx shadcn@latest add @uibrik/zoom-past`.

Can't run commands? https://uibrik.com/components/zoom-past/prompt.txt has every file verbatim, with the setup steps, ready for an assistant to write.

## Render it

Renders as is; every value shown is the default, so delete any line you don't need.

```tsx
import { ZoomPast } from "@/components/uibrik/zoom-past/zoom-past";

<ZoomPast
  play={0}
  words={["Come closer", "Even closer", "Right here"]}
  duration={0.5}
  exitScale={2.6}
/>
```

## Tune it

The same props as the Customize panel on https://uibrik.com/components/zoom-past.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `words` | `string[]` | `["Come closer","Even closer","Right here"]` | Cycled through, one per play. |
| `duration` | `number` | `0.5` | Time for one word to pass. |
| `exitScale` | `number` | `2.6` | How large the old word grows as it rushes past. |

## Wire it

The props the Customize panel doesn't show: ranges, data, content and callbacks.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `play` (required) | `number` |  | Each change plays the effect again; 0 shows its resting state. |

## Where it fits

- **High-energy headlines**: Words flying toward you with the next arriving behind create momentum.
- **Event and launch pages**: Zooming text suits countdowns and big reveals.
- **Video-style intros**: A cinematic word sequence works as an intro without video.

## Same shelf: Transitions

- [Anagram Shuffle](https://uibrik.com/components/anagram-shuffle.md): Letters rearrange themselves into the next anagram.
- [Crumble to Sand](https://uibrik.com/components/crumble-to-sand.md) (Pro): The phrase crumbles into grains that rebuild the next one.
- [Particle Scatter](https://uibrik.com/components/particle-scatter.md): Each press breaks the phrase into particles that regroup.
- [Redact and Reveal](https://uibrik.com/components/redact-reveal.md): Black bars redact a line, then lift to reveal the next.
- [Rolling Word](https://uibrik.com/components/rolling-word.md): One word rolls to the next like a drum.
- [Scatter Text](https://uibrik.com/components/scatter-text.md): Phrases shatter into particles that regroup into the next phrase.

## Ground rules

- Only the props above exist. To change anything else, edit the installed file.
- Keep the files in `components/uibrik/zoom-past/` so the import paths keep resolving.
- The playbook for working with the whole library: https://uibrik.com/llms.txt
