Saturday, May 11, 2024
 Popular · Latest · Hot · Upcoming
28
rated 0 times [  32] [ 4]  / answers: 1 / hits: 44026  / 13 Years ago, sat, august 6, 2011, 12:00:00

I'm trying to animate a link color change from the current color to an other color.



$(window).load(function(){
$('.article-preview h1 a').hover(function(){
$(this).animate({
color: #ffffff
}, 1500);
});
});


For some reason it's not working. I'm using the jQuery color plugin.


More From » jquery

 Answers
64

You need to wrap the hex triplet in a string, change this:



color: #ffffff


to this:



color: #ffffff

[#90778] Friday, August 5, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ravenl

Total Points: 338
Total Questions: 107
Total Answers: 112

Location: Belize
Member since Mon, Jun 20, 2022
2 Years ago
;