jQuery Animate not working on background-color property

后端 未结 5 1838
迷失自我
迷失自我 2020-12-21 09:29

I was playing around with the jQuery .animate() function, and ended up trying to change the background-color of one of the divs depend

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-21 10:22

    You can animate the backgroundColor only with jQueryUI. If you don't want to use jQueryUI you will need to just change a class and have the animation made in CSS using transitions.

提交回复
热议问题