Backgrounds
Digital Rain
Cyan katakana and hex glyphs fall in columns down a dark canvas, leaving fading trails; occasional bright white leading chars evoke the Matrix effect.
canvasmedium complexityintense motion
Open on the canvas to copy the code → Free account · 3 copies a day · membership goes unlimited
Worth keeping?
Votes steer what gets built next — sign in to cast one, free to read
When to use it
Dark-mode hero backgrounds, hacker/cyberpunk themes, loading screens, tech brand splash pages.
When not to
Light-background UIs (background hardcoded near-black). Contexts where constant column motion competes with foreground content.
Working with an AI agent
Every component ships agent-ready metadata. An example instruction for this one:
Change glyph color from cyan (#22d3ee) to neon green (#00ff41), increase font size divisor from 26 to 20 for denser columns, add more katakana to the GLYPHS array. 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
- glyph color (#22d3ee)
- bright lead-char color (#aef6ff) and frequency (0.92 threshold)
- font size divisor (w/26)
- trail fade opacity (rgba 0.18)
- glyph set (GLYPHS array)
- theme tokens (:root dark defaults + [data-theme=light] overrides)
Keep intact
- IIFE wrapper
- prefers-reduced-motion guard with static fallback
- visibilitychange pause in runLoop
- DPR-aware canvas sizing
- theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)
Known limitations
- Renders every other frame (frame%2) — motion can feel slightly choppy at low refresh rates
- Column reset probability (0.975) means some columns stall near bottom before resetting
- Background color hardcoded in CSS and canvas fill — must edit both to change from near-black
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.
- Mesh GradientFour 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.
- 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.
- 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.