Controls made of glass marbles that roll, knock and settle like the real thing.
Six controls built on one small rolling engine: every marble moves under gravity with rolling resistance, knocks into others as equal masses do, and its cat’s-eye turns by exactly the distance it rolls, while the light it focuses through the glass travels with it in its shadow. Marble Switch tips its track so the marble rolls down the groove and bounces gently off the end. Cradle Loader is a Newton’s cradle of real pendulums that hand the knock along the row and swing to a stop when done. Abacus Stepper flicks a bead across the rod for each unit, and the knock runs on through the beads it hits. Marble Tabs roll the marble along a groove of dimples to the chosen tab, overshooting and settling in. Marble Rating drops a marble into a cup for each point and lets the extra ones hop out and roll away. Run Progress rolls the marble down a zig-zag run to the current value and into the cup at 100%. Light and dark pages, keyboard and screen reader ready, reduced motion, zero dependencies.
Type: Component packs. Price: $2. Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). Tags: animated toggle switch, newtons cradle loader, physics ui, number stepper, tabs component, rating component, creative progress bar, micro interaction.
What is inside (6 marble controls)
Marble Switch: Switch it and the track tips: a glass marble rolls down the groove, turning as it rolls, and bounces gently off the end.
Cradle Loader: A cradle of glass marbles on threads: the knock passes along the row as real pendulums trade momentum.
Abacus Stepper: Each unit flicks a bead across the rod; it slides, clacks into the group and the knock runs on through the row.
Marble Tabs: The marble rolls along a groove of dimples to the chosen tab, checked a little by each one, overshoots and settles in.
Marble Rating: Marbles drop into a cup for each point and bounce to rest; lower the score and the extra ones hop out and roll away.
Run Progress: The marble rolls down a zig-zag run to the current value, faster down each ramp, and drops into the cup at 100%.
Rime (Component pack, 6 ice controls, $2): Controls made of ice: frost that grows, panes that crack and water that freezes.
Stitch (Component pack, 6 thread controls, $2): Controls that are sewn, knitted and embroidered, with real thread physics.
Dune (Component pack, 6 sand controls, $2): Controls made of real sand: every grain falls, tumbles and piles up.
Fastener (Component pack, 6 fastener controls, $2): Controls that fasten like clothing: zips that mesh, studs that snap, hook-and-loop that tears, buckles that click.