Jump to content
Search Community

How to force Scrolltrigger moving forward one step?

Indietech test
Moderator Tag

Recommended Posts

Hallo, everyone. I'm new here. i just learn gsap week ago
i Follow this codepen and no problem at all. All i want is animation effect like this 
https://www.prevint.pt/en/

So, when i scroll fast it just move fast to the next slide one step. it would be great if you can help me to make a scroll pin on the bottom. Thanks

See the Pen YzygYvM by GreenSock (@GreenSock) on CodePen

Link to comment
Share on other sites

 

Hey @Indietech - welcome to the forum.

 

You could probably take the core-concept from this pen, using the scrollToPlugin for this instant-snappy movement, and change it to work in a horizontal scenario.

 

See the Pen rNLOdbB by GreenSock (@GreenSock) on CodePen

 

But be aware

 

Quote

 

ScrollTrigger is not built to scroll-jack like what this approach does. The approach above is a hack and I don't really recommend using it. If you really need this sort of functionality then you'll need to either build the functionality yourself or use an existing tool like fullpage.js. But even then, depending on your needs, there are likely to be issues because web browsers are simply not built to work in this sort of way. 

 

The demos above (and in the threads linked to) are experiments as to what is possible.

 

 

by @ZachSaucier in this following thread (and others on that same topic)

 

 

 

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