I need to make a blur effect on a div. I know that for Chrome I can use CSS3 filters, and for IE and Firefox I have to use the SVG filter. I canβt understand why my SVG filter doesnβt work in IE 10+, but works fine in Firefox?
Demo: http://jsfiddle.net/8pytt/3/
HTML
<div id="container"> <h1>test</h1> </div> <svg version="1.1" xmlns="http://www.w3.org/2000/svg"> <filter id="blur"> <feGaussianBlur stdDeviation="5"></feGaussianBlur> </filter> </svg>
CSS
body { background: blue; } #container { width: 100%; height: 500px; text-align: center; background: blue; opacity: .8; background-image: -webkit-radial-gradient(circle farthest-side, white, black); background-image: -moz-radial-gradient(circle farthest-side, white, black); background-image: -o-radial-gradient(circle farthest-side, white, black); background-image: -ms-radial-gradient(circle farthest-side, white, black); -webkit-filter: blur(5px); filter:url('#blur'); } h1 { color: red; padding-top: 100px; }
source share