Jump to content
Search Community

ScrollTriger not working smoth

panamera test
Moderator Tag

Recommended Posts

Hi @panamera :)

 

You currently have toggleActions and scrub on this, but you can't have both. I assume you want scrub so that's what I did in my fork. Your trigger was set to start at top top and end at bottom bottom but the trigger was/is 100vh in height so those happen at the same time. I set them to center for clarity. See how the scrub works properly now?

 

See the Pen a3ba3dccfc969f6e3d1b2e5248c19e3d by PointC (@PointC) on CodePen

 

You'll be able to shorten that timeline a whole bunch by using a stagger. 

https://greensock.com/docs/v3/Staggers

 

GreenSock also has SplitText as part of Club GreenSock so you may want to take a look at that as well.

 

Hopefully that helps. Happy tweening.

:)

 

  • Like 3
Link to comment
Share on other sites

8 minutes ago, panamera said:

But if i scroll fast to the top, the navigation is very fast and the animation is not ready visible.

I'd recommend using a "linear" or "none" ease with scrub. If you don't want it tied to the scrub, you can remove that and go back to toggleActions and a specific duration.

 

9 minutes ago, panamera said:

Can i create a second scrollTrigger with a Timeline? I want to use many Triggers for different elements.

Yes - you can have as many ScrollTriggers and timelines as you like. Give it a try and we can help if you get stuck.

 

Happy tweening.

:)

 

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