sledder Posted February 16, 2022 Share Posted February 16, 2022 Hello - new to gsap, have read & watched documentation videos and searched but I am stuck and hoping someone can help. I'm trying to animate icons as they are either in-view when the page loads or else when they come into view during scroll. I've only been able to trigger all the icons at once when the first one hits the start point. Ideally any icon visible on page load would animate immediately, and subsequent icons would animate as they come into view. Any help would be greatly appreciated. Icons not in view on load would preferably be hidden (which I can do via css) but not sure where to set the visibility while using ScrollTrigger and DrawSVG. Many thanks! See the Pen yLPPdgq?editors=0110 by sledder07 (@sledder07) on CodePen Link to comment Share on other sites More sharing options...
Solution OSUblake Posted February 16, 2022 Solution Share Posted February 16, 2022 Welcome to the forums @sledder You had some syntax errors with your arrow function, but is this what you are going for. See the Pen XWzzLLW by GreenSock (@GreenSock) on CodePen 2 Link to comment Share on other sites More sharing options...
sledder Posted February 17, 2022 Author Share Posted February 17, 2022 @OSUblake, rockstar man, thank you so much!! 1 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