∞ forever components

Particles & Physics

Metaball Fluid

7 hot-pink blobs drift and merge via a high-contrast canvas threshold; cursor adds an attracting blob that pulls them toward the pointer.

canvasheavy complexityintense motionpointermobile-ready

Open on the canvas to copy the code → Free account · 3 copies a day · membership goes unlimited

Live demo — the real component, running in a sandbox. One self-contained HTML file, zero dependencies. Open it on the canvas →
1

When to use it

Ambient backgrounds, loading screens, creative portfolio hero sections.

When not to

Low-end mobile (CPU-bound pixel loop). Contexts requiring legible text overlays.

Working with an AI agent

Every component ships agent-ready metadata. An example instruction for this one:

Change color from pink to electric blue (#00eaff), reduce blob count to 5, increase off-screen resolution for sharper edges (divide by 2 instead of 4). Theme: dark tokens live in :root, the light variant in :root[data-theme="light"]; ?theme=light or a {type:'forever:theme'} postMessage switches at runtime.

Safe to edit

  • blob count (n=7)
  • blob color (hue base 300)
  • off-screen resolution divisor (/4)
  • pointer attractor strength (120)
  • theme tokens (:root dark defaults + [data-theme=light] overrides)

Keep intact

  • low-res offscreen canvas pattern (critical for perf)
  • visibility pause
  • pointer blob attractor
  • theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)
  • demo-v1 preview lifecycle: initialize demoEnabled from window.__foreverPreview and stop attract work on the window forever:interactive event; retain manual feedback, settling, cleanup and explicit sessions

Known limitations

  • CPU-bound pixel loop — heavy on low-end devices
  • No reduced-motion fallback beyond a single static frame
  • State remains local to each mounted instance; format/theme remount preserves takeover, not component values.

canvasmetaballgooeyphysicspointerparticlesgenerative

More Particles & Physics components

  • Gravity Dot RainMulticolored dots fall under gravity with motion trails, bounce off the floor, and scatter away from the cursor on a dark navy canvas.
  • Firework BurstColorful glowing sparks burst radially, fall under gravity, and fade against a dark sky. Initial automatic launches stop after first input; canvas clicks…
  • Confetti CannonOchre festival-paper palette: broad confetti rectangles fire from bottom corners, tumble and flip. First input stops automatic launches; a manual burst…
  • Bouncing Balls7–14 glossy pastel balls bounce off walls and collide with elastic physics; cursor repels balls within a 70px radius.
  • Spring ChainA 16-node spring chain whips and follows the cursor in a lime-to-gold gradient; initial figure-eight attract motion stops after first input; manual chain…
  • Cloth Wave GridAn 11x11 wireframe grid ripples like cloth via sine/cosine waves in cyan-to-violet hues; mesh nodes bulge away from the cursor on hover.