jquery color animation throws Invalid property value intermittently

前端 未结 8 1763
伪装坚强ぢ
伪装坚强ぢ 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:27

    For those having this issue with the jQuery color plugin, a good enough hack is to change

    if ( fx.state == 0 ) {
    

    to something low like

    if ( fx.state <= 0.045 ) {
    

    Oddly enough fx.state is not always 0, which is why the invalid property error gets thrown occasionally.

提交回复
热议问题