Svelte Animation Experimentation

tweened

Use cases for tweened are when one value changes to another.

0

Something interesting about tweened is that it takes either a value or an array of values.

spring

The above example can use spring instead of tweened, however the result is quite different.

Acoording to the docs

const size = spring(100); size.stiffness = 0.3; size.damping = 0.4; size.precision = 0.005;

Resources