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

前端 未结 5 2417
名媛妹妹
名媛妹妹 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:21

    I changed your css: ul.nav li a, adding float: right to it and that fix the shake.

    Anyway if it helps, I had the same problem when animating height of a div within another div with height:auto. Changing the height to a fix width solved it.

    Hope it helps.

提交回复
热议问题