Jump to content
Search Community

Animate multiple svg icons same class with ScrollTrigger

sledder test
Moderator Tag

Go to solution Solved by OSUblake,

Recommended Posts

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

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.
×
×
  • Create New...