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.
| Prop | Type | Default | Description |
|---|---|---|---|
| seconds | number | 20 | Seconds for a full bulb to run through. |
| width | number | 120 | Glass width in px. |
| onFinish | () => void | Called when the sand has all run through. | |
| className | string | Extra classes added to the outer element. |