Hi everyone, how can I add fade out to each of the section after almost finish sliding here? I tried to put autoAlpha to this part
gsap.to(sections, {
y: -120,
autoAlpha: 0,
ease: "none",
scrollTrigger: {
trigger: sections,
containerAnimation: scrollTween,
start: "center 80%",
end: "center 20%",
scrub: true,
id: "2"
}
});
But it doesn't work, it will fade out the whole container. Somebody can help me what am i doing wrong here?
https://codepen.io/syedzaquan/pen/poqzvvr