Jump to content
Search Community

GSAP Horizontal scroll

codeSanjay test
Moderator Tag

Go to solution Solved by GreenSock,

Recommended Posts

I have horizontal slider initiated using GSAP. But the problem is when horizontally scrolled it triggers other section too. What I wanted is that the sections below horizontal scroll to be only triggered when come to the original position. Also I want the whole document to be pinned. Is it possible to do with GSAP? As always I am very hopeful to you guys. Thanks in advance.

See the Pen BarqbaY?editors=1111 by devSanjay (@devSanjay) on CodePen

Link to comment
Share on other sites

I don't understand what you mean. You set the trigger to ".horizontal-sliders" and you didn't set an "end", so it uses the default of "right left", meaning when that trigger's right side hits the left side of the screen (or the equivalent distance). Sorry, I'm just not clear on what you're expecting or what you think is wrong. 

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