jQuery:动画文本颜色 [英] jQuery: animate text color
本文介绍了jQuery:动画文本颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在悬停事件中动态更改链接颜色。到目前为止我得到了以下代码,但它不起作用。有什么建议吗?在我看来,这似乎是正确的......
i wanna dynamically change the link color within a hover event. I got the following code so far but it doesn´t work. Any suggestions why? In my oppinion it seems to be right...
$('.fadelink').hover(function(){
$(this).animate({
color: '#333'
}, 600);
},
function(){
$(this).animate({
color: '#999'
}, 600);
});
推荐答案
你必须添加 colors 插件,使其工作。这是从核心剥离的。
You have to add colors plugin to make it work. That is stripped from core.
这篇关于jQuery:动画文本颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文