Images border-radius doesn't work during css transition

前端 未结 4 1160
情深已故
情深已故 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条回答
  •  旧时难觅i
    2021-01-02 08:27

    Just make border-radius inherit

    .parent {
        border-radius: 50%;
    }
    
    .parent img {
        border-radius: inherit;
    }
    

提交回复
热议问题