Nesting ScrollTriggers inside multiple timeline tweens
Better to see once example
"applying ScrollTrigger to multiple tweens that are nested inside a timeline"
Is it not these, for example?
const tl1 = gsap.timeline({})
.to('#jsScn21', 1, {top:'-200vh', ease:Power1.easeInOut}, '-=2.85')
.to('#jsScn22', 1, {top:'-200vh', ease:Power1.easeInOut}, '-=1.85')
.to('#jsScn23', 1, {top:'-200vh', ease:Power1.easeInOut}, '-=1.85')
const scroll1 = ScrollTrigger.create({
trigger: "#jsScene1",
start: "top top",
end: "+=500%",
animation: tl1
});
const tl2 = gsap.timeline()
.fromTo('#jsScn21', 1, {top:'-200vh'}, {top:'-300vh', ease:Power1.easeInOut})
.fromTo('#jsScn22', 1, {top:'-200vh'}, {top:'-300vh', ease:Power1.easeInOut}, '-=.85')
.fromTo('#jsScn23', 1, {top:'-200vh'}, {top:'-300vh', ease:Power1.easeInOut}, '-=.85')
const scroll2 = ScrollTrigger.create({
trigger: "#jsScene2",
start: "-=200%",
end: "+=500%",
animation: tl2
});