Jump to content


Animating along a path

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 looked at your example here   and am excited that you can animate elements along a path using the MorphSVGPlugin. I assume that the element that should be animated needs to reside inside that SVG as per the example?


I for example have a specific ball image around which I need to animate "fizzing" bubbles. Any ideas on how to accomplish a curving path motion if not SVG??



See the Pen epXvKg by GreenSock (@GreenSock) on CodePen

Link to comment
Share on other sites

Hi dada78 :)


You can use a regular DOM element or image to follow that path. Here's the same demo from above with a .png outside of the SVG following the path.


See the Pen vKaBxQ by PointC (@PointC) on CodePen


I'm not sure I understand the part of 'fizzing' bubbles around the ball. Did you mean the fizzing bubbles would follow a path? Or did you mean that the ball would follow the path and the bubbles would animate around the ball during that animation?


If you could put together a CodePen demo, that would be great.


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.