background-size transition on hover causes chrome to “shake” background image

前端 未结 3 1107
遥遥无期
遥遥无期 2021-01-18 03:11

I am trying to achieve an effect I saw recently, where background image zooms on hover. I pretty much did it with example here: https://jsfiddle.net/qyh6nbwt/ but it seems t

3条回答
  •  臣服心动
    2021-01-18 03:25

    Used transform scale instead of a background-size change transition: https://jsfiddle.net/qyh6nbwt/

    transform: scale(2, 2);
    

提交回复
热议问题