Component packs › Cogwork › Gear Train Loader

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.

Gear Train Loader is a loader from Cogwork, a component pack with 6 clockwork controls: Controls run by real gears: they mesh, wind, tick and ratchet. Price: $2 for the whole pack.

Built with: true gear ratios, teeth stay in phase, inertia run-down.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

Gear Train Loader props

PropTypeDefaultDescription
labelstringAccessible name while loading.
doneTextstring
donebooleanStart stopped and finished.
speednumberTurns per second of the big gear.
theme'light' | 'dark'
autoplaynumber | falseKept for the showcase; the train always runs while loading.

Methods on the ref

Use it in React

import GearTrainLoader from './GearTrainLoader';

<GearTrainLoader />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Cogwork

Good for: Skeuomorphic UI.