Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
martinmailaender

ScrollTrigger in Timeline does it work?

Recommended Posts

Hi Community,

 

iam new in GreenSock GSAP and my question is maybe fixed in few seconds.

I have a timeline, so that every animations starts with the end of the previous, this all works perfectly.

 

Now i want to give the class .services a scrolltrigger so that the animation start when the element is in the viewport - i implemented in the timeline, but i dont know if this is correct or how i can do this. 

 

All approaches are welcome - if you can tell me whats the best solution for that, it would be great.

 

Thanks in forward

Martin

 

image.thumb.png.d0f9869631a1053c5d88df3c841e8eab.png

 

Link to comment
Share on other sites

Hey martinmailaender and welcome to the GreenSock forums.

 

Including a ScrollTrigger on a tween inside of a timeline doesn't make much logical sense as both the ScrollTrigger and the timeline would try to control the state of the tween. Doing so is one of the most common ScrollTrigger mistakes. The article also covers your options of how to fix this (and many other common issues). See also the most common GSAP mistakes article because you're making one of them as well.

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

×