Demo 5 :: Color

JQuery animations are cool and all but if you tried to change color with jQuery, you might have noticed that it didn't work. In jQuery's core bundle, it only provides simple animations and no support for color changing. Changing colors is a bit more complicated than calculating positions of an object. JQuery has to account for all the colors in between the ones you are transitioning from. You can download the jQueryUI for color transitioning from

View the HTML code

<div id="nav">

View the jQuery code

	$('#nav li').hover(function(){
		$(this).stop(true).animate({'backgroundColor': '#399'}, 1000);
	}, function(){
		$(this).stop(true).animate({'backgroundColor': '#09F'}, 1000);