I’m must be doing something stupid, because I can’t make this simple animate work 😛
$(document).ready(function() {
$('li').hover(function() {
$(this).stop().animate({
backgroundColor: '#ff3300'
}, 500);
}, function() {
$(this).stop().animate({
backgroundColor: '#000000'
}, 500);
});
});
It doesn’t do the animation.
You have to reference jQuery UI script file too. (In jsFiddle check the
jQuery UI 1.8.7box). That’s where theanimatefunction is.( http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.7/jquery-ui.js )