Jump to content
GreenSock

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

SVG morphing between very simple shapes

Recommended Posts

OK.. so If we need to animate a very simple shape, a vesica pisces, into simple circle.. .. Can GSAP handle that, or must we use something like SnapSVG.js?      


 


Specifically, I need to animate this shape into a perfect circle.  (a solid shape with a fill, no stroke.)  


(They both have the same number of points.)


x98092725.gif


 


 


 


Maybe a shape morphing plugin is in the works?   MorphSVG?


 


 


Thanks !


 


 


 


Link to comment
Share on other sites

Hi HaunGo :)

 

already there isn't a GSAP official Plugin for SVG path morphing , but you can use snap.svg and control progress of a Snapsvg tweens with GSAP to use in GSAP Timelines or whatever .

 

pls check this post for more info : http://greensock.com/forums/topic/11381-tween-path-with-same-number-of-points-to-different-shape/

  • Like 1
Link to comment
Share on other sites

I have never personally used that plugin but I have heard nothing but great things about CJ (the author) and he's definitely a sharp guy. Both the author of SnapSVG and that GSAP plugin work at Adobe who tends to hire very solid developers :) I'd encourage you to give it a shot and let us know how it goes. 

  • Like 1
Link to comment
Share on other sites

  • 1 month later...

Wouldn't tweening the border-radius work for a simple shape like that?  I'm very new to GSAP but this seems to work okay: 

See the Pen oXyzEK by ohem (@ohem) on CodePen

  • Like 1
Link to comment
Share on other sites

Hi ohem

 

yep that works perfectly , but seems HaunGo was looking for SVG solution ,

 

something like this : 

See the Pen xGgWWa by MAW (@MAW) on CodePen

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