Does anyone know how I can get (or calculate) the duration of a
spring()
animation? Specifically, one that uses
Spring.StiffnessMedium
?
s
Stylianos Gakis
09/27/2022, 9:33 PM
Springs afaik are specifically made in a way that you can't know the exact duration of. It depends on more factors than just the stiffness of it.
If you're looking for a duration based approach you may have to look at some other API instead.
What is your use case? What do you need that duration for?
a
Albert Chang
09/28/2022, 2:28 AM
I agree that duration-based animation might be better for your use case. That being said, you can get the duration with