jquery color animation throws Invalid property value intermittently

前端 未结 8 1760
伪装坚强ぢ
伪装坚强ぢ 2020-12-29 11:50

I\'m trying to animate the background for an ASP.Net hyperlink to do a yellow fade on an update panels refresh. So far it works almost all of the time, but occasionally a j

8条回答
  •  一向
    一向 (楼主)
    2020-12-29 12:14

    The fix on the jQuery site is below (should be in a future release). In effects.core.js, change:

    if ( fx.state == 0 ) {
        fx.start = getColor( fx.elem, attr );
        fx.end = getRGB( fx.end );
    }
    

    to:

    if (!fx.colorInit) {
        fx.start = getColor(fx.elem, attr);
        fx.end = getRGB(fx.end);
        fx.colorInit = true;
    }
    

    This totally cleared the problem up for me.

提交回复
热议问题