Jump to content
Search Community

problems with adding second scrolltrigger

casvanluijtelaar test
Moderator Tag

Go to solution Solved by akapowl,

Recommended Posts

  • Solution

 

Welcome to the forum @casvanluijtelaar

 

Looks like you have a comma in a place where it doesn't belong ( end: 'center, 10%'   -   end-property of second ScrollTrigger ).

 

Also, you'll probably want to set immediateRender: false on the tween of your second ScrollTrigger to make sure the initial setting of your sections to opacity: 0 doesn't get overruled by that ScrollTrigger ( else it would want to tween from opacity 1 ).

 

See the Pen ac10ec109bacb72c4f7b763714b38da0 by akapowl (@akapowl) on CodePen

 

  • Like 2
Link to comment
Share on other sites

20 hours ago, akapowl said:

 

Welcome to the forum @casvanluijtelaar

 

Looks like you have a comma in a place where it doesn't belong ( end: 'center, 10%'   -   end-property of second ScrollTrigger ).

 

Also, you'll probably want to set immediateRender: false on the tween of your second ScrollTrigger to make sure the initial setting of your sections to opacity: 0 doesn't get overruled by that ScrollTrigger ( else it would want to tween from opacity 1 ).

 

 

 

 

yep that totally did it, dumb mistake as usual. thanks for the tips!

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