Svelte’s tweened store animates between an initial value and an arbitrary value. But sometimes you want to restrict what the values can be.
This is what a “range store” does. The
to values are defined when the store is intitialized.
store.run() is used to animate from one to the other.
- This could be implemented with discrete tween as well