Hello, I have an error in my code, something is wrong.
am I doing something wrong with stagger?
const triggerPhotos = document.querySelectorAll(".foto");
triggerPhotos.forEach(pyts => {
const tlPhotos = gsap.timeline({
scrollTrigger: {
trigger: pyts,
start: "top 40%",
scrup: 1,
ease: "expo.out",
toggleActions: "restart none none reverse",
}
})
tlPhotos
.from(pyts, {
duration: 1,
stagger: 0.3,
x: "-50%",
opacity: 0,
})
});