Skip to content

Hourglass

A glass and wood hourglass: the grains really fall, the pile grows with its slope, and a click flips it.

Plan
Pro · commercial license
Dependencies
React only
Props
8 (6 adjustable)

Included in Pro and Lifetime. See pricing

Made with Furin: Pill Nav · Metal Button · Copy Morph

Props

PropTypeDefaultDescription
durationnumber20Time for all the sand to fall, in seconds.
sizenumber210Width of the hourglass, in px (the height is 5/3 of the width).
sandstring"#e8c27a"Color of the sand.
woodstring"#8a5a30"Base color of the wood.
autoStartbooleantrueFlips itself when it enters the screen to get started.
loopbooleanfalseWhen it finishes, it flips itself and starts over.
onComplete() => voidundefinedCalled when the last grain falls.
onFlip() => voidundefinedCalled every time it is flipped.

Installation

With your license

1Set up the Pro registry once

Pro components aren't on npm or in the public shadcn registry: you install them with your license from Furin's private registry.

Use my license

2Install Hourglass

npx shadcn@latest add @furin-pro/hourglass

Dependencies

React
18 or later
Other libraries
none
License
commercial

Pro components install into your project: the code is yours and there's nothing else to download.

Keep exploring

  • A true lenticular print: hundreds of cylindrical lenses interleave 2 to 3 images and each shows depending on the angle. As you tilt it with the cursor you see the flip band, per-lens shine and the transparent plastic.

    Objects

  • A 3D printed-cardboard matchbox with a striker strip on the side: the drawer springs open on hover or click, revealing matches and your content on a small card.

    Objects

  • A WebGL medal with real relief (normal map generated in code), satin finish with concentric grooves, procedural studio reflections, a swaying fabric ribbon and a 3D tilt whose specular shine follows the cursor; click to flip it.

    Objects