Tumble Letters
A headline of physical letters: drop them and they fall, spin, bounce and pile against each other on the floor; hover lifts letters in a wave, any letter can be grabbed and flung, and Reassemble springs them home.
Try it: Drop the letters, then drag and fling any of them.
Installation
Install with the shadcn CLI:
npx shadcn@latest add https://www.framekitui.live/r/tumble-letters.jsonOr, with the @framekit namespace registered: npx shadcn@latest add @framekit/tumble-letters. You can also copy the source into components/ui/tumble-letters.tsx (view on GitHub).
Usage
import { TumbleLetters } from '@/components/ui/tumble-letters'Props
| Prop | Type | Default | Notes |
|---|---|---|---|
text / highlight | string | — | Headline and the words in accent ink. |
autoDrop | number | 0 | ms after mount to drop automatically (0 = never). |
gravity | number | 2400 | px/s². |
bounce | number | 0.38 | Floor restitution. |
onDrop / onAssemble | () => void | — | Lifecycle callbacks. |
Dependencies
lucide-react
Related Text Animations components
- Glyph Weather
Glyphs drift with scroll direction.
- Ink Bleed Text
A serif headline that soaks into the page: each word lands as a wet blot of ink that spreads through the paper fibres (an SVG turbulence displacement relaxing to zero), then dries crisp from a soft…
- Wordloom
Words weave out as threads and resolve the next.
- Sparkle Text
A word that catches the light: four-point stars bloom and fade around it on staggered clocks while the letters carry a soft ink-to-accent gradient. Sparkles on scroll-in or hover, then rests.
- Momentum Caption
Caption briefly follows pointer velocity.
- Highlight Marker Text
Editorial copy annotated by hand: as it scrolls into view a marker sweeps behind one phrase, an underline draws under the next, a pen circle loops another and a strike crosses one out, in sequence.…