Jump to content
Search Community

Animate SVG with MorphSVG

Baret test
Moderator Tag

Go to solution Solved by mvaneijgen,

Recommended Posts

Hello,
I want to animate a line (1 in the drawing) which turns into an arc of a circle (3 in the drawing) by changing its shape and color. 
The intermediate curves show the type of deformation I want. I tried with MorphSVG, but without success. 
What approach should I have?
Thank you for your help.

Capture.JPG

Link to comment
Share on other sites

  • Solution

@Baret where do you get your shapes from? 

 

I've opened a vector program drawn a arch for the end shape, copied and modified that line to be the start shape and did a morph between the two `#id`'s 

566311787_Screenshot2021-02-10at13_55_17.jpg.3e9b40eb23437698e4d04ef17502c7d5.jpg

 

See the Pen xxREWrg by mvaneijgen (@mvaneijgen) on CodePen

 

For good measure changed the color to red like in your drawing.

 

Hope it helps. 

  • Like 4
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.
×
×
  • Create New...