How to create a frosted glass effect using CSS?

后端 未结 7 1154
独厮守ぢ
独厮守ぢ 2020-12-01 06:12

I\'d like to create a div that is fixed in one position and make it translucent - making the contents behind it partially visible and blurred. The style I\'m lo

7条回答
  •  暖寄归人
    2020-12-01 06:21

    This should be coming browsers in the future as a CSS filter called backdrop-filter. There's virtually no support for it at all currently. For browser support see: http://caniuse.com/#feat=css-backdrop-filter

    This CSS filter will do the frosted glass without any funny business, or hacks. It'll just do it.

    Someone recorded a demo of it on Vine, and it looks really good. They were using Safari nightly to get access to the CSS filter. https://vine.co/v/OxmjlxdxKxl

提交回复
热议问题