Capítulo 398 de 411
Just like we've just seen with staggers, It's common to animate more than one thing. But what if we need more control over the order and timing of those animations?
// create a timeline
let tl = gsap.timeline()
// add the tweens to the timeline - Note we're using tl.to not gsap.to
tl.to(".green", { x: 600, duration: 2 });
tl.to(".purple", { x: 600, duration: 1 });
tl.to(".orange", { x: 600, duration: 1 });