Component packs › Marble › Cradle Loader
A cradle of glass marbles on threads: the knock passes along the row as real pendulums trade momentum.
Cradle Loader is a loader from Marble, a component pack with 6 marble controls: Controls made of glass marbles that roll, knock and settle like the real thing. Price: $2 for the whole pack.
Built with: pendulum physics, elastic contacts, swings to a stop.
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.
| Prop | Type | Default | Description |
|---|---|---|---|
width | number | ||
label | string | ||
autoplay | number | false |
start(): voiddone(): voiddestroy(): voidimport CradleLoader from './CradleLoader';
<CradleLoader />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Toggle switches, Loaders and progress, Physics UI components.