Hi @mvaneijgen
is it possible to use this feature with in time line
Eg. i have section where scroll trigger is initiated under the time line and when i push into array iam getting the whole time line. any suggestion will be appreciated.
details.forEach((detail, index) => {
let headline = detail.querySelector("h1");
let benifitsTrigger1 = gsap.timeline({
scrollTrigger: {
trigger: headline,
start: "top 80%",
end: "top 50%",
animation: gsap.to(photos[index], { yPercent: 0 }),
scrub: true
}
allSt.push(benifitsTrigger1 );
});
});