Hi!
I've got two timelines that individually work nicely:
tl0 slides an image. The long duration (120s) is to get the correct speed.
tl1 has three text bullets appear in sequence (i.e. "PowerPoint" style).
Can someone help me get tl1 to pause and/or kill tl0 when the text has finished appearing. Thanks!
Lots of failed attempts in the code below:
let tl0 = gsap.timeline();
tl0.set("#waves", {attr: {x: -canvasWidth}})
.to("#waves", {duration: 120, attr: {x: 0}});
let tl1 = gsap.timeline();
tl1.set("#text1-ln1, #text1-ln2, #text1-ln3", {opacity: 0.0})
.set("#text1-ln1", {delay: 1.0, opacity: 1.0})
.set("#text1-ln2", {delay: 1.0, opacity: 1.0})
.set("#text1-ln3", {delay: 1.0, opacity: 1.0})
// .call(console.log, ["Ended."]) // Works.
// .call(tl0.pause); // Doesn't work.
// .call(tl0.pause, []); // Doesn't work.
// .call(tl0.pause, [null]); // Doesn't work.
.call(tl0.pause, [null, false]); // Doesn't work.
// .call(tl0.pause, [null, true]); // Doesn't work.
// .call(tl0.pause, null); // Doesn't work.
// .call(tl0.pause, null, ">"); // Doesn't work.
// .call(tl0.pause, null, "<"); // Doesn't work.
// .call(tl0.kill); // Doesn't work.
// .call(tl0.kill, []); // Doesn't work.
// .call(tl0.kill, [null]); // Doesn't work.
// .call(tl0.kill, null); // Doesn't work.