facebookarchive / rebound

A Java library that models spring dynamics and adds real world physics to your app.
http://facebook.github.io/rebound/
Other
5.43k stars 818 forks source link

[feature request] calculate animation duration until at rest #83

Open ninovanhooff opened 7 years ago

ninovanhooff commented 7 years ago

To synchronise Android Animators with Springs, it would be nice to know the time it takes for a spring to be back at rest

ie

Animator fadeIn = ...;
double springDuration = spring.duration(double startValue, double endValue);
fadeIn.setStartDelay(springDuration);