Jump to content
Search Community

Animation origin of a path

symbolebranding
Moderator Tag

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

symbolebranding
Posted

I'm trying to change the origin point of my staggering elements. Both are a path which visualy start drawing at the top of the line then goes down.

 

Is there any way to tell GSAP to start at the bottom of the path then up.

 

I tried with transform orignins without success.

 

Thanks in advance!

 

See the Pen ObGJPM by symbolebranding (@symbolebranding) on CodePen.

Posted

Hi symbolebranding :)

 

If I understand your question correctly, you want to draw the path from the end to the beginning? If that's the case, you can reverse it like this:

.staggerFromTo($elice, 0.5, {drawSVG:"100% 100%"}, {drawSVG:"0% 100%"}, 0.25)

Your pen was also missing the drawSVG plugin. This CodePen is a good bookmark. It has all the CodePen safe club plugins. 

See the Pen OPqpRJ by GreenSock (@GreenSock) on CodePen.

 

Hopefully that helps.

 

Happy tweening.

:)

  • Like 3

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