Mohd Rejoan Posted August 15, 2021 Share Posted August 15, 2021 I am trying to follow the scrollTrigger animation tutorial. But my code isn't working. See the Pen KKmYWLN by md-rejoan (@md-rejoan) on CodePen Link to comment Share on other sites More sharing options...
Trapti Posted August 15, 2021 Share Posted August 15, 2021 keep the scrollTrigger in timeline. Add necessary properties like when you want to start and stop. As it is trigger will run on default values. const tl = gsap.timeline({scrollTrigger: {trigger: ".sec-3 .container"}}); 3 Link to comment Share on other sites More sharing options...
Mohd Rejoan Posted August 15, 2021 Author Share Posted August 15, 2021 Thank you so much 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