

As you might expect, it does not work in Internet Explorer. The core of this technique is supported by all modern browsers. We can’t escape talking about browser support here. What else can you think of? Please let us know what you discover in the comments. Plus, they can be referenced in a CSS filter and applied to any element in addition to SVG. Apply different SVG filters: There are all kinds of filters, including Gaussian blur and different types of lighting.Add more layers: With CSS blending, you can stack as many any layers as you’d like and blend them down.Try different gradients: Besides linear-gradient, CSS offers four more types of gradients.


Background with gradient and SVG: Next, we drop that filter into CSS as a background image that combines the filter with a CSS gradient.SVG turbulence: This is our noise filter.Here’s what we’re working with under the hood: Layer it underneath a gradient, boost the brightness and contrast, and that’s it - you have gradient that gradually dithers away. The trick is to use an SVG filter to create the noise, then apply that noise as a background. The easier way is likely to just create the effect as a raster image and then just have it change images, but it'd be nice if it could be done in code, instead. The core technique in this article is built on top of a Stack Overflow answer by Chris Pachl to the question: Can you add noise to a CSS gradient? Turn the image greyscale, then multiply the colour over it. The quickest way to understand what’s happening is to play with the parameters that make up the layers. Illustration by Jordan Kay on Dribbble Interactive playgroundĬheck it out here.
