Hourglass Loader
A brass-and-glass hourglass: sand drains from the upper bulb through a trickling stream into a growing mound, and in endless mode the glass turns itself over on a spring when the top runs dry. Pass progress for a determinate progressbar.
Try it: Watch it pour and flip; the right one tracks a real progress value.
Installation
Install with the shadcn CLI:
npx shadcn@latest add https://www.framekitui.live/r/hourglass-loader.jsonOr, with the @framekit namespace registered: npx shadcn@latest add @framekit/hourglass-loader. You can also copy the source into components/ui/hourglass-loader.tsx (view on GitHub).
Usage
import { HourglassLoader } from '@/components/ui/hourglass-loader'Props
| Prop | Type | Default | Notes |
|---|---|---|---|
progress | number | — | 0–100 for a determinate progressbar; omit for the endless pour. |
label | string | — | Status line under the glass (announced politely). |
duration | number | 6 | Seconds per pour in endless mode (2–20). |
accent | string | '#d4a24c' | Sand colour. |
size | number | 168 | Height in px. |
Dependencies
motion
Related Loading components
- Orbital Bead Loader
Beads orbit a core; hover speeds up.
- Cook Loading
An illustrated chef stirs a sizzling wok while your app loads — eight original cooking poses, drifting steam, real progress and ready/error states in one self-contained component.
- Ink Drip Loader
Ink drops merge into a looping puddle.
- Login Gate Intro
A lock-screen preloader: oversized clock, generated avatar card, a password field that types itself, a three-step sign-in sequence, then the site fades up. Skip link included; reduced motion opens…
- Morph Glyph Loader
Glyph morphs through abstract SVG shapes.
- Snake Loader
A progress loader whose visual is a tiny snake board. The snake plays itself while you wait, progress fills a row of tiles beneath it, and the status line carries the label, current step and…