juliangarnier / anime

JavaScript animation engine
https://animejs.com
MIT License
50.4k stars 3.68k forks source link

Modify maximum values for spring easing parameters #824

Open FrancescoMagalini1 opened 2 years ago

FrancescoMagalini1 commented 2 years ago

Is it possible to modify the maximum values for the parameters of spring easing? All the parameters have a maximum of 100, but mass and velocity don't need to be that high while stiffness and damping could be higher. I think it would make easier working with other libraries ( react-spring ) or design tools ( figma ) and also it would be possible to have more alternatives to choose from.

Thank you best regards

juliangarnier commented 2 years ago

Good point, will have a closer look at how springs are defined in other libs / platforms.