Letters fall from above one after another, squash on landing and settle with a small rebound. Starts when the text scrolls into view and replays when you hover it. Reduced motion shows the text at rest.
npx shadcn@latest add https://hyperblur.dev/r/text-drop-bounce.jsonWorks in any React project set up with the shadcn CLI. The file lands in components/hyperblur/text-drop-bounce.tsx.
import { TextDropBounce } from "@/components/hyperblur/text-drop-bounce"
<TextDropBounce text="Ship it today" className="text-6xl font-bold" />| Prop | Type | Default | Description |
|---|---|---|---|
| text | string | "Gravity wins" | Text to animate. Words never split across lines. |
| stagger | number | 0.05 | Delay between letters in seconds. |
| distance | number | 1.1 | Fall height in em. |
| duration | number | 0.95 | Seconds each letter takes to land and settle. |
| once | boolean | true | Play a single time. Turn off to replay every time it scrolls into view. |
| replayOnHover | boolean | true | Drop the letters again when the pointer enters. |