Hemanth Posted November 15, 2023 Share Posted November 15, 2023 Hi there, I'm a newbie to GSAP, and while I was working on a tutorial related demo-project, I experienced a problem related to scrollTrigger animations. Though the content is displayed, the animations aren't working at all or are getting struck in midway. Sometimes no content is getting displayed. Please help me with this. I've put my demo code in the codepen.io url : . See the Pen VwgMgwN by Star-Bot (@Star-Bot) on CodePen Link to comment Share on other sites More sharing options...
mvaneijgen Posted November 15, 2023 Share Posted November 15, 2023 Hi @Hemanth welcome to the forum! When working with timelines, ScrollTrigger can only be on the timeline not on individual tweens. I've moved your ScrollTrigger code to the timeline and now everything seems to work as expected. Hope it helps and happy tweening! See the Pen xxMXBdZ?editors=0010 by mvaneijgen (@mvaneijgen) on CodePen 2 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