Jump to content
Search Community

SVG MorphSVGPlugin question: How to to control and adjust the shape of the morph while the transformation?

doolak test
Moderator Tag

Go to solution Solved by Rodrigo,

Recommended Posts

Hello everybody, I am trying to animate a road in the way it follows its curve. Initially I have tried this with masking, but the result is not exactly what I want. Now I try to do it with the MorphSVGPlugin. The best result I achieved is in this CodePen: . How can I modify the morph transformation in the way it reveals the road from right to left, beginning with the initial rectangle, revealing the road smoothly on its path? Maybe there is a totally different way to achieve that? Or am I on the right way?

 

 

See the Pen oNaBZdx by doolak (@doolak) on CodePen

Link to comment
Share on other sites

  • Solution

Hi @doolak and welcome to the GreenSock forums!

 

First, thanks for being a Club GreenSock member and supporting GreenSock!

 

I'm not really well versed in SVG and this type of animations, but luckily for us @PointC has created some really solid resources in this subject.

 

I really think that using masking is the way to go as shown in this codepen:

See the Pen 2e1bf659ce907d57e6b7619f1c937373 by PointC (@PointC) on CodePen

 

You can read more about the ins and outs of this in this great article:

https://www.motiontricks.com/svg-calligraphy-handwriting-animation/

 

Hopefully this helps.

Happy Tweening!

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