Jump to content
GreenSock

thejamespower

Animating SVG object along Bezier Path

Moderator Tag

Recommended Posts

Hi everyone,

 

I'm trying to animate some objects (arrow heads) along the path of the arrow itself. CodePen attached. I'm attempting to use the BezierPlugin to achieve this, but transforms are being applied to the position of the arrow heads in a strange way. I'm sure there is a straightforward solution to this, but I can't seem to figure it out!

 

Many thanks for any help provided, as always!

See the Pen eRzMOW by thejamespower (@thejamespower) on CodePen

Link to comment
Share on other sites

Managed to solve it with:

align: 'relative'

 

in the MorphSVGPlugin.pathDataToBezier options. Should have checked the doc's more thoroughly!

  • Like 3
Link to comment
Share on other sites

Cool. Thanks for letting us know you figured it out.

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.
×