Spring Kit
Shape a physics-based ease with its duration and bounce.
Pick spring in the type menu of the ease editor, or click the curve preview of a spring() ease. Drag the handle on the curve, or set the fields of the spring.

animate('.ball', {
id: 'Ball pop',
scale: [0, 1],
ease: spring({ bounce: 0.5, duration: 628 }),
});
Fields
| Field | Edits |
|---|---|
| duration | The perceived duration in milliseconds, when the animation feels complete |
| bounce | The bounciness, from -1 to 1. Above 0 the motion bounces, below 0 it settles without a bounce |
A spring replaces the duration of its tween with the time the spring takes to settle.
In the free version, a spring() ease from your code still plays and saves, but its fields need Editor Kit.