forever components

Particles & Physics

Pollen Brownian Drift

Up to 260 warm and grey motes drift sideways on a cream field with random Brownian jitter, leaving faint fading trails; pointer and click stir gusts.

canvasmedium complexitysubtle motionpointer

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

Organic/nature-themed backgrounds, editorial hero sections with a soft paper aesthetic, ambient loading screens.

When not to

Dark-background designs (background hardcoded cream). Content-heavy layouts where floating particles distract from text.

Working with an AI agent

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

Change the particle palette to cool blue-grey tones by setting the warm accent RGB (192,86,60) to (80,130,200), reduce mote count cap to 160, and slow drift by setting the drift base to 0.10. 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

  • particle count cap (N=260)
  • laminar drift speed (drift formula, +0.18 base)
  • mote radius range (0.7–3.1 * S)
  • accent color RGB (192,86,60 warm)
  • background/trail wash color (#f2efe6 / rgba 0.14 alpha)
  • theme tokens (:root dark defaults + [data-theme=light] overrides)

Keep intact

  • DPR-aware canvas sizing and setTransform
  • IIFE wrapper
  • reduced-motion static fallback (rest())
  • visibilitychange pause/resume
  • theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)

Known limitations

  • Background hardcoded cream (#f2efe6) in both CSS and canvas fill — must change both to retheme
  • No aria semantics on canvas — decorative only
  • Gust decays via 0.95 multiplier per frame; very slow framerate makes gust persist longer

particlesbrownian-motionambientcanvasdriftorganicnature

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.