Controls run by real gears: they mesh, wind, tick and ratchet.
Six clockwork controls on one gear engine: every gear has real teeth and a spoked body, meshing gears turn at the ratio their tooth counts give and stay in phase, and the brass, steel and copper are lit from one side with soft shadows. Gear Toggle rolls a pinion along a toothed rack, turning exactly as far as it travels. Wind-up Button is held to wind: the butterfly key turns, the click drops into each ratchet tooth and the blued mainspring coils tighter, then letting go runs your action while it unwinds. Escapement Progress ticks toward your value: the anchor rocks, ruby pallets let the escape wheel through a tooth at a time and the dial hand steps on. Crank Stepper turns a number drum with a crank, a sixth of a turn per number, with detents and stops at the ends. Gear Train Loader runs four gears in mesh and coasts down on its own inertia when done. Ratchet Slider only moves one way until you lift the pawl. 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: gear loading animation, clockwork UI, steampunk UI components, animated toggle switch, hold to confirm button, progress indicator, number stepper, range slider.
What is inside (6 clockwork controls)
Gear Toggle: The thumb is a pinion rolling along a toothed rack, turning exactly as far as it travels and staying in mesh the whole way.
Wind-up Button: Hold to wind: the key turns, the click drops tooth by tooth and the mainspring coils tighter; let go and the spring runs your action.
Escapement Progress: An anchor rocks, ruby pallets let the escape wheel through one tooth per tick, and each tick steps the dial hand toward your value.
Crank Stepper: Turn the crank and its gear drives the number drum round, a sixth of a turn per number, with detents and stops at the ends.
Gear Train Loader: Four spoked gears in mesh, each at the speed its teeth give it; done() lets the train coast down on its own inertia.
Ratchet Slider: The carriage runs along a toothed rack; its pawl rides up each tooth and drops behind it, so it only goes back once you lift the pawl.