Component packs › Lather › Foam Loader

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.

Foam Loader props

PropTypeDefaultDescription
widthnumber140Width in px. Default 140.
labelstring
autoplaynumber | false

Methods on the ref

Use it in React

import FoamLoader from './FoamLoader';

<FoamLoader />

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

More in Lather

Good for: Toggle switches, Loaders and progress, Physics UI components.