Hourglass

Sand runs from one bulb to the other. Click to flip it, even halfway through, and it carries on from where the sand is.

Install it the shadcn way: copy the source file into your project. It uses CSS 3D, Tailwind CSS v4 and Framer Motion, no WebGL.

Hourglass3D props

PropTypeDefaultDescription
secondsnumber20Seconds for a full bulb to run through.
widthnumber120Glass width in px.
onFinish() => voidCalled when the sand has all run through.
classNamestringExtra classes added to the outer element.

More components

Guides

Start

Cards

Scenes

Controls & text

Buttons

More cards

UI elements

Form controls

App components

Text & backgrounds

Showpieces

Blocks