Using SVGs as filters

In Chapter 6, Stunning Aesthetics with CSS3, we looked at the CSS filter effects. However, they are not currently supported in Internet Explorer 10 or 11. That can be frustrating if you want to enjoy filter effects in those browsers. Luckily, with help from SVG, we can create filters that work in Internet Explorer 10 and 11 too but as ever, it's perhaps not as straight forward as you might imagine. For example, in example_07-05, we have a page with the following markup inside the body:

<img class="HRH" src="queen@2x-1024x747.png"/>

It's an image of the Queen of England. Ordinarily, it looks like this:

Using SVGs as filters

Now, also in that example ...

Get Responsive Web Design with HTML5 and CSS3 - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.