Blurring an image via CSS?

后端 未结 6 771
不知归路
不知归路 2020-12-08 13:13

On many smartphones (Samsung Galaxy II being an example) when you browse through a photo gallery, its blurred copy is laid out in the background. Can this be achieved by CSS

6条回答
  •  臣服心动
    2020-12-08 13:33

    Yes there is using the following code will allow you to apply a blurring effect to the specified image and also it will allow you to choose the amount of blurring.

    img {
      -webkit-filter: blur(10px);
        filter: blur(10px);
    }
    

提交回复
热议问题