Experiments >

Code animation: Variable speed

Experiment #1682nd May, 2021by Joshua Nussbaum

I’d like to release a svelte store that is based on svelte’s tweened() stores but with some extra methods.

I experimented with some additional methods in #35, #37 and #48, but one thing is missing was variable speed adjustment.

This experiment looks at how to adjust the tweened store’s speed while it’s playing. This is needed for the timeline view, to allow the user to watch at different speeds, ie @2X or @4X speed.

Code

https://svelte.dev/repl/1c38a4b762714589a2896e2caf6d8af8?version=3.38.1

Demo

view all experiments

Stay tuned in

Learn how to add more experimentation to your workflow