forever components

Organic & Nature

Flickering Fire

Additive-blended ember particles rise from a glowing orange base, flickering like a real flame; cursor pans left/right to fan the fire sideways.

canvasmedium complexityintense 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

Dark-background hero sections, loading screens, atmospheric effects in creative or gaming contexts.

When not to

Light backgrounds (hardcoded near-black bg). Content-heavy layouts where constant high-motion competes with readability.

Working with an AI agent

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

Change the flame color to blue/purple by editing the gradient stops: replace rgba(255,160,40,...) with rgba(80,120,255,...) and rgba(200,40,10,0) with rgba(120,0,200,0), and update the base glow to rgba(60,40,255,0.25). 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 spawn rate (cnt=5 per frame)
  • particle size range (sz: 8+random*14)
  • fan sensitivity (fanX*1.2)
  • base glow radius (W*0.25)
  • ember gradient color stops
  • max particle cap (120)
  • theme tokens (:root dark defaults + [data-theme=light] overrides)

Keep intact

  • globalCompositeOperation='lighter' for additive blending
  • visibilitychange pause/resume
  • prefers-reduced-motion branch (static particle cap)
  • theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)

Known limitations

  • Background color is hardcoded in CSS (#160a06) — must edit to work on non-dark backgrounds
  • No IIFE wrapper — globals (cv, x, P, t, raf) could clash in multi-component pages
  • Reduced-motion mode slows particle decay but still animates; not a fully static fallback

fireparticlescanvasadditive-blendorganicambientpointer

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.
  • 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.
  • Aurora RibbonsThree glowing aurora bands in green and violet ripple and sway over a twinkling starfield; pointer steers the horizontal drift of all ribbons.