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
When starting a bounce animation with some configurations of duration and velocity can result in NaN update values.
(The animations do successfully end at their to values though.)
When starting a bounce animation with some configurations of
duration
andvelocity
can result inNaN
update values.(The animations do successfully end at their
to
values though.)For example:
https://codesandbox.io/s/popmotion-velocity-nan-et3t3?file=/src/index.tsx:0-425
This animation should not have
NaN
valuesonUpdate
It seems that the actual Nan is created hereabouts:
popmotion/packages/popmotion/src/animations/generators/spring.ts
Line 75 in a1903c8
as a result of an invalid dampingRatio.
Please let me know how I could help with this issue. Thank you.
This issue was initially discovered here
motiondivision/motion#1094
The text was updated successfully, but these errors were encountered: