Component packs › Aerosol › Can Shake Loader

Can Shake Loader

A spray can shakes hard, eases off and puffs a test mist; done() sprays a tick on the wall beside it.

Can Shake Loader is a loader from Aerosol, a component pack with 6 spray paint controls: Buttons, headings and controls spray-painted through stencils, droplet by droplet. Price: $2 for the whole pack.

Built with: shake envelope, drifting mist, drawn steel can.

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.

Can Shake Loader props

PropTypeDefaultDescription
labelstring
darkbooleanfollows the pageForce the dark (true) or light (false) look. Default: follows the page.
autoplaynumber | falseShowcase mode: calls done() and restarts every N ms while visible.

Methods on the ref

Use it in React

import CanShakeLoader from './CanShakeLoader';

<CanShakeLoader />

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

More in Aerosol

Good for: Skeuomorphic UI.