Jump to content
Search Community

scrolltrigger only scrolldown

Lovestoned test
Moderator Tag

Recommended Posts

Hey Lovestoned.

 

There is no getting around this space using your current approach because it's a logical issue. You're setting the transforms of your sections down 3 full screen sizes with transforms (one from the pin, the others from the yPercent: 300). So logically using that approach there's going to be 300vh of space at the top.

 

I'd probably set it along the lines of this:

See the Pen OJbGoeY?editors=0010 by GreenSock (@GreenSock) on CodePen

 

Again, please avoid the most common GSAP mistakes of using the duration parameter, using string values unnecessarily, and animating non-performant properties like top.

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