Instead of changing the background color, remove this attribute!
The code is as simple as:
$("li").hover( function(){ $(this).toggleClass('hover', 1000); }, function(){ $(this).toggleClass('hover', 2000); } );
Example: http://jsfiddle.net/rdWTE/
You need jQuery and jQuery UI to work it. What exactly did you want (except flowers)!
Those numbers in the jQuery script indicate the duration of the animation in milliseconds.
EDIT:
Uhm ... It was discovered that toggleClass may appear from time to time. It is better to use addClass on hover and removeClass on mouse out.
jolt
source share