jquery color animation throws Invalid property value intermittently

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

    This doesn't appear to work if you are trying to animate some elements in certain browsers (works in Firefox, not in Google Chrome). For example, this will not work with an HTML Canvas. fx.start will be undefined.

    My 'hack' to get it to work with HTML Canvas elements for example -

    if (fx.start == undefined) { fx.start = getRGB('white'); }
    

提交回复
热议问题