Share Posted March 15, 2021 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 Link to comment Share on other sites More sharing options...
Share Posted March 15, 2021 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. 1 Link to comment Share on other sites More sharing options...
Author Share Posted March 15, 2021 thx for your info and help i will check it Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now