Jquery background animate

前端 未结 6 1386
暖寄归人
暖寄归人 2021-01-13 11:03

Is it possible to animate the background-color in jQuery, because it is not working.

$(\'#something\').animate({
    background :\"red\"
}, 1000         


        
6条回答
  •  执念已碎
    2021-01-13 11:41

    You'll need a plugin to do color animations with jQuery:

    http://plugins.jquery.com/project/color

提交回复
热议问题