using a div to blur an image behind it?

Dr Robotnik picture Dr Robotnik · Oct 30, 2013 · Viewed 46.5k times · Source

Is it possible to code a div to enable it to blur whatever image is under it?

something like this:

enter image description here

Could this be done somehow with -webkit maybe?

Answer

Dre picture Dre · Oct 30, 2013

Not with CSS on its own, but you can pull a similar effect off with Canvas and the StackBlurforCanvas library. See this

UPDATE: Looks like backdrop-filter was recently introduced to Webkit nightly, so eventually we'll be able to do this with CSS only. Yay!