Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
raskolnikov

SVG Path to Bezier tool

Recommended Posts

Hey all!

 

I've been doing a lot of animating along bezier curves and created a simple little helper tool/function that converts an SVG path into an array of cubic bezier points that can be plugged directly into GSAP Tweening functions. It's still missing a little functionality for quadratic and elliptical arc movements, but I haven't come across any issues with it yet converting SVGs saved out of Illustrator.

 

Just thought I'd share in case anyone else finds it useful.

 

http://github.com/mattanglin/svg-to-cubic-bezier

 

I'll update to incorporate the other SVG movements (and cleanup the code. It's pretty quick and dirty at the moment...) as I have time. Any feedback welcomed.

 

Thanks!

 

 

Link to comment
Share on other sites

Well shoot.

Just found this post here since the last time I was on the forums. Looks like the issue has already been addressed.

Feel free to delete this post.

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