I've a link named #link.
It changes color after hover, like this:
$("#link").hover(function(){
$(this).css({color: '#fed900'});
});
All I want to do is smooth, animated color change.
I know I have to put .css in an .animation somehow, but can't figure it out how.
I think that's the right way, but it doens't work at all:
$("#link").hover(function(){
$(this).animate( { css({color: '#fed900'}) }, "slow" );
});
I've also tried like this:
$(this).animate({ .css({color: '#fed900'}), "slow" });
But I'm still wrong somehow. Any helping hand? I know I'm missing something really small.