Background blur with CSS

前端 未结 7 2255
忘了有多久
忘了有多久 2020-11-27 13:34

I want an Vista/7-aero-glass-style effect on a popup on my site, and it needs to be dynamic. I\'m fine with this not being a cross-browser effect as long as

7条回答
  •  生来不讨喜
    2020-11-27 14:01

    In which way do you want it dynamic? If you want the popup to successfully map to the background, you need to create two backgrounds. It requires both the use of element() or -moz-element() and a filter (for Firefox, use a SVG filter like filter: url(#svgBlur) since Firefox does not support -moz-filter: blur() as yet?). It only works in Firefox at the time of writing.

    See demo here.

    I still need to create a simple demo to show how it is done. You're welcome to view the source.

提交回复
热议问题