uibrik

Zoom Past

Preview

Customize

Duration0.50s
Exit scale2.6
Text size48px

Usage

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

<ZoomPast play={play} />

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.

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.