Case study · 2025
Neon Drip Background
Neon drips falling down a dot grid, no canvas needed.
Highlights
- Dot grid drawn with a radial gradient repeated every 20 pixels
- One to three drips every three seconds, each snapped to a grid column
- Every drip gets its own keyframes, deleted from the stylesheet when it lands
This effect runs without canvas or WebGL. The background is a single div with a radial gradient repeated every 20 pixels, which gives a quiet grid of dots that stretches to the full height of the page.
Every three seconds the script creates one to three thin lines. Each one picks a random grid column, so it lines up with the dots, a random length, and one of five gradients in cyan, magenta, amber, sky blue or pink that fades out toward the top. Then it writes a fresh keyframes rule into the stylesheet for that line, moving it from above the page to below the last section while it fades in and out. The duration comes from the page height, so the fall speed stays the same on long and short pages.
When a drip lands, a timeout removes the element and deletes its keyframes rule, so the stylesheet does not keep growing while the page stays open.


