How to create a frosted glass effect using CSS?

后端 未结 7 1171
独厮守ぢ
独厮守ぢ 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:29

    You made me want to try, so I did, check out the example here:

    http://codepen.io/Edo_B/pen/cLbrt

    Using:

    1. HW Accelerated CSS filters
    2. JS for class assigning and arrow key events
    3. Images CSS Clip property

    That's it.

    I also believe this could be done dynamically for any screen if using canvas to copy the current dom and blurring it.

提交回复
热议问题