forever components

Gold-Leaf Ornamental Studies

Gilded Halo

Concentric gold rings bloom and fade from click/pointer points while gold-leaf flecks scatter with gravity; auto-strikes keep it alive passively.

canvasmedium 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

Dark luxury hero backgrounds, art-inspired installations, gold-leaf/Art Nouveau themed UIs needing ambient gold motion.

When not to

Light backgrounds (hardcoded dark fill). Contexts needing legible content overlaid — rings and flecks compete visually.

Working with an AI agent

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

Change GOLD_HI to '#ffe066' and GOLD2 to '#b8960c', increase ring count per strike from 4 to 6, and slow ring expansion by reducing sp base from 54 to 36. 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

  • gold colors (GOLD2, GOLD_HI)
  • rings per strike (loop i<4)
  • ring speed base (sp: 54+i*20)
  • fleck count (10+random*8)
  • auto-strike interval (1.5s)
  • fleck gravity (60*dt)
  • theme tokens (:root dark defaults + [data-theme=light] overrides)

Keep intact

  • DPR-aware fitCanvas()
  • visibilitychange pause/resume
  • prefers-reduced-motion guard + static fallback
  • IIFE wrapper
  • theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)

Known limitations

  • Background color hardcoded to #070502 — must edit CSS to change
  • pointermove strikes at 5% probability; heavy cursor movement can spike particle count
  • No aria live region for dynamic events — purely decorative role=img

goldhaloringsparticlescanvasdark

More Gold-Leaf Ornamental Studies components

  • The Golden TreeRecursive gold fractal tree grows and breathes via a pulsing sine wave, with spiral coil tips and drifting gold flecks against a near-black background.
  • Mosaic ShimmerA 14x10 grid of gold tesserae pulses in diagonal sine-wave shimmer; sparse jewel-toned accents pop against the gold, evoking Byzantine mosaic.
  • Spiral Ornament EngineGold spirals, all-seeing eyes, and gilded triangles fade in and out against a near-black background, slowly rotating as they drift through their lifespan.
  • The Pattern LoomThree gold friezes of gold-leaf symbols (circles, spirals, triangles, eyes) scroll in alternating directions at staggered speeds, endlessly re-weaving.
  • Falling GoldDiamond-shaped gold flakes drift and sway downward against a near-black background, each shimmering in opacity as they tumble and rotate.
  • Byzantine CounterpointTwo SVG columns of spirals, eyes, and triangles in gold and malachite cycle motifs and counter-rotate every 900ms in phase-shifted counterpoint.