jQuery:动画文本颜色

Mik*_*lik 7 jquery hyperlink jquery-animate

我想动态更改悬停事件中的链接颜色.到目前为止,我得到了以下代码,但它不起作用.有什么建议吗?在我看来,这似乎是正确的......

    $('.fadelink').hover(function(){            
        $(this).animate({
            color: '#333'
        }, 600);            
    },
    function(){
        $(this).animate({
            color: '#999'
        }, 600);          
    });
Run Code Online (Sandbox Code Playgroud)

Ard*_*rda 9

你必须添加颜色插件才能使它工作.这是从核心剥离.