Component packs › Lather › Foam Loader
Foam that swells, jostles, coalesces when bubbles touch and pops the biggest; it never repeats.
Foam Loader is a loader from Lather, a component pack with 6 bubble controls: Controls made of soap bubbles, with real thin-film colour. Price: $2 for the whole pack.
Built with: coalescing, soft packing, pops with spray.
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 | 140 | Width in px. Default 140. |
label | string | ||
autoplay | number | false |
start(): voiddone(): voiddestroy(): voidimport FoamLoader from './FoamLoader';
<FoamLoader />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Toggle switches, Loaders and progress, Physics UI components.