Black Friday: 30% off Pro

Get 30% off

Lean and Scramble

Preview

Customize

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

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.

Usage

import { LeanScramble } from "@/components/uibrik/lean-scramble/lean-scramble";​<LeanScramble  play={0}  text="Lean into every word"  lean={10}  duration={0.45}  wordStagger={0.08}  tick={40}/>

Where to use Lean and Scramble

  • Interactive hero text

    Words leaning and scrambling under the cursor give a headline a technical edge.

    Pairs with Scramble Text

  • Hacker-style brands

    Glitching letters suit security, crypto and developer products.

  • Portfolio intros

    A name that scrambles on hover is a small, memorable interaction.

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.