Component packs › Dune › Hourglass Loader
Grains drain through the neck into a growing cone; when the top is empty the glass turns over and runs again.
Hourglass Loader is a loader from Dune, a component pack with 6 sand controls: Controls made of real sand: every grain falls, tumbles and piles up. Price: $2 for the whole pack.
Built with: grain-by-grain flow, flip with the grains, done check.
Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.
| Prop | Type | Default | Description |
|---|---|---|---|
size | number | Scale factor. 1 = 56 × 92 px. | |
label | string | Accessible name. | |
running | boolean | Start finished (static). | |
onFlip | () => void | ||
autoplay | number | false | Showcase mode: calls done() then restarts every N ms. |
start(): voiddone(): voiddestroy(): voidimport HourglassLoader from './HourglassLoader';
<HourglassLoader />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Toggle switches, Loaders and progress, Physics UI components.