Jump to content
Search Community

Gsap Timeline Issue

Dharmendra Deval test
Moderator Tag

Go to solution Solved by mvaneijgen,

Recommended Posts

You can increase your ScrollTrigger by increasing the end trigger. Right now you've set it to end: "=+100%", but if you set it to end "+=6000px" it will span you're animation over 6000px or what ever value you pick. 

 

As for your animation I would advise you to remove ScrollTrigger for now and just watch your animation, just really look and pay attention what it is doing. This will get played on scroll. Right now it is 32 seconds long (Side note: these 32 seconds will get stretched over 6000px) I would figure that the images would change when the text changes "Find shifts", but that is not what it is doing at the moment. 

 

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

Link to comment
Share on other sites

  • Solution

I would go the route of something like this. I never work with changing classes, I rather just animate properties directly with GSAP, so I can't fix that for you.

 

But here I've used named position parameters to have certain tweens play at the same time. ScrollTrigger is disabled, but if you were to enable it it would play this timeline on scroll. Hope it helps and happy tweening! 

 

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

 

 

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