Skip to content

Glass Cylinder

A drum counter seen through a glass cylinder that magnifies the center, like an old gas pump.

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

Included in Pro and Lifetime. See pricing

TotalLiters
0
1
2
3
4
5
6
7
8
9
0
1
2
3
4
5
6
7
8
9
0
1
2
3
4
5
6
7
8
9
0
1
2
3
4
5
6
7
8
9
0
1
2
3
4
5
6
7
8
9

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

Props

PropTypeDefaultDescription
valuenumber | undefined0Number the drums display; when it changes, the drums spin until they reach it.
digitsnumber5Number of drums (including decimals).
decimalsnumber2How many of the drums are decimals.
labelstring"Total"Label engraved on the plate.
unitstring"Liters"Unit engraved next to the counter.
zoomnumber1.55How much the glass magnifies the center of the cylinder.
sizenumber54Width of each drum, in px.
autoplaybooleanfalseFills and empties the counter on its own, like a gas pump.

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 Glass Cylinder

npx shadcn@latest add @furin-pro/glass-cylinder

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

  • Glass marbles rolling down a track of ramps as a loading indicator, with real physics.

    Glass

  • A click cracks the glass from that point; the shards fall with physics and then snap back together.

    Glass

  • A wave of liquid glass between two sections that refracts both and slides with the cursor.

    Glass