Experiments >

Undoing nested animations

Experiment #3912th March, 2021by Joshua Nussbaum

In this experiment, I explored how to undo nested animations.

By keeping of a stack of running animations, I can reverse each animation by walking backwards thru the stack and reversing each animation.

Code

https://svelte.dev/repl/090e464841fb4aa5883f1ab8c254d925?version=3.35.0

Demo

view all experiments

Stay tuned in

Learn how to add more experimentation to your workflow