Shuffle Loader is a row of blocks that perpetually trade places: one lifts up, slides over its neighbors, and drops into a new slot. The block count, speed, and timing curve are props. Built with Framer Motion and Tailwind CSS. A more interesting waiting state than a spinner for page transitions, AI generation pauses, and background job indicators.
Installation
Usage
import { ShuffleLoader } from "@/components/ui/shuffle-loader";<div className="grid place-content-center bg-neutral-950 p-8">
<ShuffleLoader />
</div>Props
| Prop | Type | Default | Description |
|---|---|---|---|
count | number | 5 | Number of blocks in the row. |
size | number | 32 | Width/height of each block in pixels. Also drives the lift/drop distance. |
className | string | — | Classes for the outer flex container. |
Related components
- 3D Layered Card
A 3D card with layered effects and animations.
- Animated Code Block
Code snippets with typing and highlighting effects.
- Animated Text
Text with various animation effects and transitions.
- Ascii Text
Renders text as animated ASCII block letters, with wave, scan, glitch, typewriter and pulse modes.
