diff --git a/jquery.color.js b/jquery.color.js index e599714..886c4c6 100644 --- a/jquery.color.js +++ b/jquery.color.js @@ -9,9 +9,10 @@ // We override the animation for all of these color styles jQuery.each(['backgroundColor', 'borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderTopColor', 'color', 'outlineColor'], function(i,attr){ jQuery.fx.step[attr] = function(fx){ - if ( fx.state == 0 ) { + if ( !fx.colorInit ) { fx.start = getColor( fx.elem, attr ); fx.end = getRGB( fx.end ); + fx.colorInit = true; } fx.elem.style[attr] = "rgb(" + [