From the course: SVG: Clipping, Masking, and Filters

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

feMerge

feMerge

From the course: SVG: Clipping, Masking, and Filters

Start my 1-month free trial

feMerge

- [Instructor] The feMerge filter primitive allows filter effects to be applied concurrently instead of sequentially, meaning you can control in which order the different filter effects are applied. You achieve this by taking the result attributes from different filters, and then listing them in the order you want them to be applied using individual feMerge node elements. In this example, I've applied the feGaussianBlur filter to the rectangle, and now I want to superimpose the original graphic on top so that this blurred rectangle becomes a drop shadow behind it. In the exercise files, I already have the filter set up, so here we have feGaussianBlur. I've applied it to the SourceAlpha to show you that if you have a graphic that maybe is white, or green, or blue, or something like that, and you don't want to have a white, or green, or blue drop shadow, you would just pull out the alpha layer of the element you're working with, and that alpha layer will always be black, so therefore…

Contents