forever components

Particles & Physics

Soft-Body Jelly Drop

A glossy green jelly blob simulated with 22 Verlet nodes and pressure-volume constraints repeatedly drops, squashes on impact, and bounces back up.

canvasheavy complexitymoderate motionclick

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 →
Worth keeping? Votes steer what gets built next — sign in to cast one, free to read

When to use it

Physics demo backgrounds, playful loading screens, or game UIs needing a tactile bouncy character.

When not to

Low-end mobile or contexts requiring text legibility — constant animation and dark background limit composability.

Working with an AI agent

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

Change the jelly color to electric blue by replacing '#9be65a' with '#38bdf8', '#d8ff9e' with '#bae6fd', and '#3f7a23' with '#0369a1', then set the background to '#050d1a'. 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

  • node count (N=22)
  • rest radius (R0=S*0.17)
  • gas constant / pressure (GAS=R0*R0*Math.PI*1.18)
  • gravity strength (GRAV=S*0.00055)
  • floor position (floorY=H*0.80)
  • jelly color gradient stops
  • theme tokens (:root dark defaults + [data-theme=light] overrides)

Keep intact

  • Verlet integration + pressure-normal loop
  • DPR-aware canvas sizing
  • visibilitychange pause/resume
  • prefers-reduced-motion static fallback (260-step settle)
  • theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)

Known limitations

  • Click/drag nudges blob sideways but direction always fans from center — no left/right targeting
  • No aria semantics on canvas element
  • Catmull-Rom smoothing can show kinks if blob compresses very hard against the floor

soft-bodyphysicsjellyverletpressurecanvasbounce

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. Auto-launches bursts; click anywhere to add more.
  • Confetti CannonColored rectangles fire from bottom corners in auto-cycling bursts, tumbling with gravity and flip animation. Click anywhere to trigger a cursor 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; drifts in a figure-eight pattern when idle.
  • 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.