Full Page Blur in CSS

前端 未结 8 943
清酒与你
清酒与你 2020-12-08 09:59

How can I blur a whole page using CSS? Other elements such as images are allowed.

8条回答
  •  南笙
    南笙 (楼主)
    2020-12-08 10:19

    This is possible in Firefox only at this time. Here are the steps (see example here).

    You need the XHTML doc type (since we're using XML SVG markup).

    
    

    Insert the SVG element where the blur should appear.

    Include inline style (not from external css file).

    
    

    This gives you a true blur (like zoom out effect), not the standard transparent glass look you find everywhere else.

提交回复
热议问题