Images border-radius doesn't work during css transition

前端 未结 4 1177
情深已故
情深已故 2021-01-02 08:09

I\'m using border-radius: 50%; to make an image round. By default the image is blurred and zoomed (with a hidden overflow) and on hover it will remove the blur

4条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-02 08:28

    I had the same issue. Putting this css on the parent worked for me:

    clip-path: circle(50% at center);
    -webkit-clip-path: circle(50% at center);
    

    tested on safari, firefox and chrome on mac and microsoft edge.

提交回复
热议问题