npm install @caustics/blob-backgrounds <script> import { BlobBackgrounds } from '@caustics/blob-backgrounds'; </script> <BlobBackgrounds preset="lava" />
| Prop | Type | Default | Description |
|---|---|---|---|
| preset | string | "lava" | Named preset. Overrides individual props when set. |
| speed | number | 1.0 | Animation speed multiplier. 0 = static. |
| intensity | number | 0.5 | Effect intensity. Range: 0–1. |
| colors | string[] | undefined | Override palette. Accepts hex, hsl, or CSS custom properties. |
| reducedMotion | 'pause' | 'static' | 'static' | Behavior when prefers-reduced-motion is active. |
| class | string | undefined | Additional CSS classes applied to the root element. |
caustics-blob-backgrounds/ ├── svelte/ BlobBackgrounds.svelte · index.ts · types.ts ├── react/ BlobBackgrounds.tsx · index.ts · types.ts ├── vanilla/ blob-backgrounds.ts · compiled .js ├── docs/ README.md · API.md · CHANGELOG.md ├── LICENSE.md MIT, commercial use included └── package.json
Blob Backgrounds renders smooth organic blob shapes that morph and drift across the background. Two implementation options: a lightweight SVG filter approach using feTurbulence + feDisplacementMap, or a WebGL metaball shader for the smoothest, most organic output.