开发者

animate function doesn't work with colors and anchors

开发者 https://www.devze.com 2023-02-09 14:59 出处:网络
I have problem with animate background color in navigate anchors: $(this).animate({ backgroundColor: \"black\" }, 1000);

I have problem with animate background color in navigate anchors:

$(this).animate({ backgroundColor: "black" }, 1000);

with size (like width) works correct.

Why I should to do to fade backgdround c开发者_Go百科olor?


Yes, colors doesn't work with the animation built into jQuery. Use the color animation plugin for that.

0

精彩评论

暂无评论...
验证码 换一张
取 消