Accepts EasingOptions or ["easing"] array frame functions
// A string with the values that represent said spring animation using the linear-easing function
// Total duration (in milliseconds) required to create a smooth spring animation
[
"0, 0.583 5.4%, 0.669, 0.601, 0.502, 0.451, 0.457 18.9%, 0.512 24.3%, 0.516 27%, ...0.417 94.6%, 1",
3500
]
Generated using TypeDoc
Generates a string that represents a set of values used with the linear-easing function to replicate spring animations, you can check out the linear-easing playground here https://linear-easing-generator.netlify.app/ Or check out a demo on Codepen https://codepen.io/okikio/pen/vYVaEXM
CSS Spring Easing has 4 properties they are
easing(all spring frame functions are supported),numPoints(the size of the Array the frmae function should create),decimal(the number of decimal places of the values within said Array) andquality(how detailed/smooth the spring easing should be)..easingspring(1, 100, 10, 0)numPoints50decimal3quality0.85By default, CSS Spring Easing support easings in the form,
All Spring easing's can be configured using theses parameters,
spring-*(mass, stiffness, damping, velocity)Each parameter comes with these defaults
1100100e.g.