Jump to content
Search Community

problems with scrolltriggery the stagger

kmytor test
Moderator Tag

Recommended Posts

 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...