Black Friday: 30% off Pro

Get 30% off

Zoom Past

Preview

Come closer

Customize

Duration0.50s
Exit scale2.6
Text size48px

Installation

npx shadcn@latest add https://uibrik.com/r/zoom-past.json
Adds the files to components/uibrik/zoom-past and installs motion. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/zoom-past.

Usage

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}/>

Where to use Zoom Past

  • 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.

Props

ZoomPast
words
Type string[]
["Come closer","Even closer","Right here"]
Cycled through, one per play.
duration
Type number
0.5
Time for one word to pass.
exitScale
Type number
2.6
How large the old word grows as it rushes past.
playrequired
Type number
–
Each change plays the effect again; 0 shows its resting state.