Jump to content
Search Community

Gsap ScrollTrigger one touch scroll

Oleksandr07 test
Moderator Tag

Recommended Posts

ScrollTrigger is for animating things on the users scroll behavior, it sounds like the Observer plugin (docs) is more inline with what you are looking for, this watches for events (like scroll) to do something.  

 

You had set it to duration: {min: 1, max: 1} which means it will animate to the next 'slide' taking 1 second, you could fake it a bit by tweaking the snapping values, but the Observer plugin is build for it. 

 

See the Pen yLjWZjb?editors=0010 by mvaneijgen (@mvaneijgen) on CodePen

  • Like 1
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...