kmytor Posted October 20, 2022 Share Posted October 20, 2022 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, }) }); Link to comment Share on other sites More sharing options...
Andy Bui Posted October 20, 2022 Share Posted October 20, 2022 hi kmytor, You mistype "scrub" with "scrup" 1 Link to comment Share on other sites More sharing options...
kmytor Posted October 20, 2022 Author Share Posted October 20, 2022 upps !!! hehehehe I'll try again, if it works I will not and come back hehehe 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now