Baret Posted February 10, 2021 Share Posted February 10, 2021 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. Link to comment Share on other sites More sharing options...
mvaneijgen Posted February 10, 2021 Share Posted February 10, 2021 Can you share your approach in a code pen, so we can see what your thinking process is and better help you. 3 Link to comment Share on other sites More sharing options...
Baret Posted February 10, 2021 Author Share Posted February 10, 2021 Here is the pen code See the Pen OJbRQOj by jmbaret (@jmbaret) on CodePen Link to comment Share on other sites More sharing options...
Solution mvaneijgen Posted February 10, 2021 Solution Share Posted February 10, 2021 @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 See the Pen xxREWrg by mvaneijgen (@mvaneijgen) on CodePen For good measure changed the color to red like in your drawing. Hope it helps. 4 Link to comment Share on other sites More sharing options...
Baret Posted February 10, 2021 Author Share Posted February 10, 2021 Thank you. It is as I wanted it to be. It also allowed me to understand the use of the plugin on which I was blocking. Link to comment Share on other sites More sharing options...
ZachSaucier Posted February 10, 2021 Share Posted February 10, 2021 @Baret Please do not use the <pre> formatting for the text in your posts. Please post regular text instead. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now