Odd “shaking” effect when animating width with jQuery (only in Chrome!)

前端 未结 5 2432
名媛妹妹
名媛妹妹 2021-02-15 23:26

I\'m animating the width of a li element using jQuery in a simple snippet of code. I\'m using hover() as the handler and .animate() to ani

5条回答
  •  情话喂你
    2021-02-16 00:08

    Had similar issue with shaking SVGs when there's a CSS transition applied to parent tag. I tried to apply everything I could randomly, and this fix finally helped:

    svg {
      transform: translate3d(0, 0, 0);
    }
    

提交回复
热议问题