uibrik

Lean and Scramble

Preview

Customize

Lean10°
Duration0.45s
Word stagger0.08s
Scramble tick40ms
Text size48px

Usage

import { LeanScramble } from "@/components/uibrik/lean-scramble/lean-scramble";

<LeanScramble play={play} />

Installation

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

Props

LeanScramble
text
Type string
"Lean into every word"
The copy to animate.
lean
Type number
10
How far a word leans.
duration
Type number
0.45
Lean and straighten time.
wordStagger
Type number
0.08
Delay between words.
tick
Type number
40
Time between scramble frames.
playrequired
Type number
–
Each change plays the effect again; 0 shows its resting state.