Jump to content
Search Community

Horizontal Scrolling Issues with ScrollTrigger

Archetype test
Moderator Tag

Recommended Posts

Hi everyone

 

I'm having some issues with scrolling horizontally using ScrollTrigger.

 

Firstly we have one very wide section which we want to scroll and it's working fine however there's a large space towards the end, not sure where that's coming from.

 

Secondly we have elements in the wide section which we want moving slowly to give a parallax effect (see bottom white box) however what's happening is that the box moves once the scrolling stops instead of moving with the scroll. We also want the box to move only when it's in view.

 

Note: We have dragging setup in the main project so a user can drag horizontally however I haven't put that in the codepen.

 

Can anyone point me in the right direction?

See the Pen XWeerLZ by umarsheikh13 (@umarsheikh13) on CodePen

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