Jump to content


GreenSock Javascript JS: Is it possible to animate the actual drawing of a shape or bezier curve

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



I've been working with the Javascript version of GreenSock v 12, EaselJs, and the Canvas element. I know that the Actionscript version of Greensock has a CircluarPath2D or something something like that, but I've searched Google and the Greensock forums and cannot find a way of actual animate the drawing of a shape like in Flash.


I've seen tons of examples on "Transforming" shapes, and the drawing of shapes and then put them on the screen, but not any actual on-screen animated drawing of a shape/bezier. I also, looked into svg, but did not see an option there.


Is it possible to do this without using masks? If so, please provide a very simple example or send me a link to how to do this


Thanks for viewing, any help will be greatly appreciated.

Link to comment
Share on other sites



The GreenSock MotionPath tools for Javascript (which include CirclePath2D) are still under development.


Our BezierPlugin, for animating along curves, doesn't natively support any drawing of curves.


You can use the same points that the BezierPlugin uses for feeding into your own "path drawing" routines.


Take a look at the post a and jsfiddle example here: http://forums.greens...icjs#entry25782


At this time we don't have any more resources for working with the drawing of lines.

Link to comment
Share on other sites

Thanks, dude! I've seen some posts about KineticJs. I'll have to look more into it. Have a great day, J

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.