forever components

Organic & Nature

Tide Pool Diatoms

Five glassy radially-symmetric diatom frustules drift and slowly rotate in deep teal water; tessellated pores twinkle refractively with a lighter-mode glow.

canvasheavy 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

Ambient scientific or nature-themed backgrounds, biology/ocean UIs, screensaver-style hero sections.

When not to

Contexts requiring legible text overlays — the additive lighter composite blends with anything placed on top. Light backgrounds need a full restyle.

Working with an AI agent

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

Change accent color from teal to amber by replacing ACC=[63,214,192] with ACC=[255,180,60], increase rotation speed by doubling each sp value in specs, and add a sixth diatom at x:0.5, y:0.8. 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

  • accent color (ACC array)
  • diatom positions and sizes (specs array)
  • rotation speeds (sp values)
  • ring count per diatom (rings property)
  • symmetry order per diatom (sym property)
  • twinkle speed multiplier (g*1.6)
  • theme tokens (:root dark defaults + [data-theme=light] overrides)

Keep intact

  • IIFE wrapper
  • prefers-reduced-motion guard with static fallback frame
  • visibilitychange stop/start
  • globalCompositeOperation lighter reset to source-over
  • theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)

Known limitations

  • Light re-theme via the [data-theme=light] token block; catalog bg/accent describe the dark default
  • Pore count grows quadratically with ring count — large sym+rings combos can slow frame rate
  • Pointer only boosts rotation speed; no per-diatom hit detection or interaction

diatomsradialorganiccanvasambientgenerativenaturerefractive

More Organic & Nature components

  • Growing VineA sinuous green vine grows upward sprouting 14 alternating leaves and a pale bud tip, then retracts in a seamless loop on a dark forest background.
  • Flickering FireAdditive-blended ember particles rise from a glowing orange base, flickering like a real flame; cursor pans left/right to fan the fire sideways.
  • Water RippleConcentric ripple rings expand across a deep teal water surface with shimmering caustic bands; tap anywhere to drop a new ripple. Auto-drops periodically.
  • Lightning BoltJagged lightning bolts with branching forks strike randomly down a dark storm-sky canvas; screen flashes rust-white on each strike. Tap to trigger instantly.
  • Falling SnowUp to 110 depth-layered snowflakes drift and sway down a dark blue gradient; pointer movement shifts a wind force that nudges the entire flurry sideways.
  • Drifting CloudsPuffy white clouds with radial-gradient puffs and soft blue undersides drift across a layered sky gradient; pointer nudges them forward.