Jump to content
Search Community

scrollTrigger dose not work for me when I use scroll snap

john2123 test
Moderator Tag

Recommended Posts

I noticed several problems: 

  1. You were loading multiple [old] versions of GSAP and ScrollTrigger as well as a script.js file that didn't exist.
  2. You aren't using the actual page as a scroller - you've got the ".container" set up as the scroller, so you need to tell ScrollTrigger that. By default, it uses the window/body as the scroller. 

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

 

Is that more like what you were looking for? 

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...