forever components

Backgrounds

Mesh Gradient

Four blurred radial blobs in cream, gold, and tan drift and scale on a dark background with screen blend mode, creating a soft animated mesh gradient.

csslight complexitysubtle motion

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-mode hero backgrounds, app loading screens, or any canvas needing ambient color without drawing attention.

When not to

Light backgrounds (hardcoded dark base). Layouts requiring legible text overlays — blobs may compete with contrast.

Working with an AI agent

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

Change the palette to warm tones by setting --accent-iris to #ff7c40, --accent-cyan to #ffd700, and --accent-magenta to #ff3d00, then slow all animations by 3 seconds each. 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

  • blob colors (--accent-iris, --accent-cyan, --accent-magenta CSS vars)
  • animation durations (7s / 8.5s / 6.5s / 9.5s)
  • blob size (width/height 55%)
  • blur intensity (blur(40px))
  • field overshoot margin (-20% inset)
  • background base color (--bg-900)
  • theme tokens (:root dark defaults + [data-theme=light] overrides)

Keep intact

  • mix-blend-mode:screen on blobs
  • IIFE visibilitychange pause handler
  • prefers-reduced-motion guard
  • 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
  • No JS-driven randomness; blobs follow fixed alternate keyframes, so motion is predictable/looping

mesh-gradientbackgroundblobsambientdarkgenerativeloop

More Backgrounds components

  • Aurora BorealisThree blurred, screen-blended gradient ribbons drift and skew over a near-black background, simulating northern lights in blush, cream, and rose.
  • Particle Constellation18–60 lilac/tan/mauve particles drift and bounce; nearby pairs connect with fading lines, forming a shifting constellation network on a dark background.
  • Film GrainSVG feTurbulence noise jitters over a dark radial-tinted base with scrolling scanlines and a blinking magenta REC dot for an analog film look.
  • Digital RainCyan katakana and hex glyphs fall in columns down a dark canvas, leaving fading trails; occasional bright white leading chars evoke the Matrix effect.
  • Layered WavesThree SVG wave layers in iris, cyan, and dark slide horizontally at different speeds over a deep blue-gradient sky, creating a parallax depth effect.
  • Starfield WarpStars streak outward from center as cyan/purple/blue light trails simulating hyperspace warp. Auto-spawning keeps density constant on any viewport.