Jump to content


Help me loop this SVG animatin

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Hi guys I've set up this animation using SVG. I want to have the infinity symbol always 50% filled and the animation to loop forever:



It's the last (3rd) step of the animation I'm having trouble with. When the start of the line hits 100% the other end should be on... 150%? Back on 50%? Neither of those work.


Many thanks for all your help!

See the Pen AXoZpY by anon (@anon) on CodePen

Link to comment
Share on other sites

Hi miraclemaker :)


Welcome to the GreenSock forums.


If I understand your desired outcome correctly, I think you're going to need two paths to make this work. This thread about seamlessly looping a circle should provide some guidance:




Hopefully that helps.


Happy tweening.


  • Like 2
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.