Static noise, the kind you saw on a dead TV channel, can be produced with nothing but CSS gradients. The approach here exploits a rendering weakness rather than a supported feature: gradients anti-alias poorly, and pushing that weakness to its limit yields grain instead of smooth bands. The technique is unreliable by nature and browser behavior varies, so demos are best viewed in Chrome, Edge, or Firefox.

Where the effect comes from

The starting point is the familiar jagged edge from a hard color stop in a gradient. Bumping the gap between the two stops slightly, to something like 0.5% instead of whole-number values, renders visibly smoother. A conic-gradient makes the distortion easier to see.

Reversing the goal works too: shrinking the gap makes the poor anti-aliasing worse. At very small decimal values the gradient stops looking like a gradient and starts looking like grain; at values around 0.0001% the effect becomes pure noise with only a faint trace of a cone at its center. Scaling the gradient up and shifting it, for example a fixed 3000px square positioned at 60% 60%, hides that center further. A radial-gradient behaves the same way. Combining both gradient types and smoothing them with background-blend-mode gets closest to real static.

Applications

The most direct use is a no-signal animation. It only requires running a CSS animation on one of the gradients, moving the conic gradient's position at a very short duration such as .1s. The same trick appears in a one-div CSS art challenge.

For photography, a grain overlay can be applied to an image: one gradient on a pseudo-element blended with mix-blend-mode: overlay, with the CSS filter property and a mask layered in for harsher or more complex results. Text gets a similar treatment using chained gradients on background-image, blended backgrounds, and background-clip to constrain the effect to each character.

Adjusting the values beyond plain noise sometimes produces random shapes reminiscent of generative art, though not comparable to the real thing. Another example comes from CodePen's divtober 2022 collection.

Caveats

This is a study of a quirk, not a production technique. It is hard to control and inconsistent across browsers, and its behavior could change if anti-aliasing is ever addressed. Cleaner alternatives for real projects include SVG, <canvas>, and the filter property. The demos are also computationally heavy and load asynchronously on click.