you are here: codestackercodes [RSS]background animation

background animation

requires jquery.ui or jquery.color (https://github.com/jquery/jquery-color)

$.fn.backgroundAnimation : function(bgcolor, fgcolor, duration) {
	$(this).animate({ backgroundColor: bgcolor }, duration).css('color', fgcolor);
}

Comments