Jump to content
Search Community

Horizontal pin scroll

Sukru test
Moderator Tag

Recommended Posts

My advies remove ScrollTrigger and restructure your layout. You want them to stack with an offset, so build that first. If you've got that with CSS all you need to do is move the sections one by one with GSAP, .from() some position to the place you've put them with CSS. Keep in mind that each section is the windows width - the offset of all the previous sections, right now all your sections are 100% of the window width, this will not work for the effect you're doing for. 

 

Before you start thinking about animating you first have to fix your layout and before you start to think about ScrollTrigger, you first have to have a working animation, there are no shortcuts here. Hope it helps and happy tweening! 

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