Experiments >

Code animation: Move multiple events

Experiment #1735th May, 2021by Joshua Nussbaum

Continuing from the previous post where I added a feature to the timeline to expand multiple events at once.

In this one, I looked at doing something similar for moving.

By default, only one event is moved, but when the Control key is pressed, everything preceeding or following is moved too, depending on the direction of the movement.

Code

https://svelte.dev/repl/2512beecf699484b87ef70c50e625d84?version=3.37.0

Demo

Notes

  • Doesn’t work correctly with snapping
view all experiments

Stay tuned in

Learn how to add more experimentation to your workflow