Backgrounds
Film Grain
SVG feTurbulence noise jitters over a dark radial-tinted base with scrolling scanlines and a blinking magenta REC dot for an analog film look.
css+canvaslight complexitysubtle 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 hero backgrounds needing tactile film texture; retro/analog aesthetics; video-editing or media-app UIs.
When not to
Light-background layouts (background hardcoded dark). Any context where motion overlays compete with readable text or form controls.
Working with an AI agent
Every component ships agent-ready metadata. An example instruction for this one:
Change accent from magenta to amber (#f59e0b), slow the grain jitter to 1s by editing animation-duration on .c04-grain__noise, and replace the iris/cyan dim tints with warm sepia tones. 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
- grain jitter speed (0.6s on .c04-grain__noise)
- scanline scroll speed (6s on .c04-grain__scan)
- noise baseFrequency (0.9)
- radial tint colors (--accent-iris-dim, --accent-cyan-dim)
- REC dot color (--accent-magenta)
- noise opacity (0.55)
- theme tokens (:root dark defaults + [data-theme=light] overrides)
Keep intact
- SVG feTurbulence filter (grain source)
- visibilitychange pause handler
- prefers-reduced-motion guard
- IIFE wrapper
- theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)
Known limitations
- Background color hardcoded to near-black — requires CSS edits for any light-mode use
- Static SVG noise texture; grain pattern never actually changes (only jitters position)
- No JS-driven randomization — seed is fixed at 3
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.
- 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.