Experiments >

Code animation: Staggered animation

Experiment #1714th May, 2021by Joshua Nussbaum

This one looks at triggering a sequence of animations using the delay: option.

const a = tweened(0, {duration: 1000, delay: 0})
const b = tweened(0, {duration: 1000, delay: 1000})
const c = tweened(0, {duration: 1000, delay: 2000})

In the past, I investigated nested tweens, but I think this is a simpler approach, because each animation has its own duration and delay defined, so they can be started and/or stopped all at once.





  • If you pause all the animations, and later you want to continue them. You should only continue the ones that after the pause point.
view all experiments

Stay tuned in

Learn how to add more experimentation to your workflow