You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
invalid now and tween.now values on animate step callback #80
Try using progress instead which is called after, and guarnteed to be once per element per frame instead of once per property per element per frame, though since
doesn't update the tween.now it will still be this invalid thing.
We could update the tween.now or possibly use a custom tween in newer versions of jQuery - this hasn't been updated since jQuery 1.8 put in the new tween hooks.
Activity
ryanneufeld commentedon Dec 6, 2015
Seems legit.
gnarf commentedon Jan 14, 2016
stepis called before the property set hook is called.https://github.com/jquery/jquery/blob/dbc4608ed10bd1347649e6f1514f459957cda003/src/effects/Tween.js#L37-L43
Try using
progressinstead which is called after, and guarnteed to be once per element per frame instead of once per property per element per frame, though sincejquery-color/jquery.color.js
Lines 620 to 627 in 889d029
tween.nowit will still be this invalid thing.We could update the
tween.nowor possibly use a custom tween in newer versions of jQuery - this hasn't been updated since jQuery 1.8 put in the new tween hooks.