uibrik

Falling Letters

Preview

Customize

Duration0.60s
Spread0.35s
Drop36px
Text size48px

Usage

import { FallingLetters } from "@/components/uibrik/falling-letters/falling-letters";

<FallingLetters play={play} />

Installation

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

Props

FallingLetters
text
Type string
"Falling into place"
The copy to animate.
duration
Type number
0.6
Time for one letter to fall and settle.
spread
Type number
0.35
Time for the wave to cross the line.
drop
Type number
36
Height each letter falls from.
playrequired
Type number
–
Each change plays the effect again; 0 shows its resting state.