Jump to content
Search Community

How to not make first section fade immediately

Rich Cuer test
Moderator Tag

Go to solution Solved by mvaneijgen,

Recommended Posts

  • Solution

Hi @Rich Cuer I've changed your start and end values. Where your end value was first (i+ 0.5) * innerHeight, I now set that as your start value and add 0.5 to your end value, so everything has been offset the half of your innerHeight. As you can see the markers will now start later then your pinning ScrollTrigger on line 24.

 

With these kind of issues I always like to enable markers for all my triggers, that way I can see what is going on and where I need to tweak some things. Hope it helps and happy tweening! 

 

See the Pen vYVNWgp?editors=0010 by mvaneijgen (@mvaneijgen) on CodePen

  • Like 2
Link to comment
Share on other sites

  • 2 weeks later...

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