Jump to content
Search Community

Path's "d" attribute transition working not correctly

mea_culpa test
Moderator Tag

Recommended Posts

Your path is not a line it are two lines really close to each other! What you want is just a single line. 

 

 Working with SVG on the web requires some elbow grease to get the files really clean. What I also see is that path points have a lot of decimal points 4248.45703125, this isn't the worst thing in the world, but the detail isn't necessary.

 

I've loaded your SVG in an online tool, so that you can better see it your self. If you zoom in you see there is a double line and that is what is messing up the animation 

Screen Shot 2022-09-23 at 09.19.17.jpg

  • Like 2
Link to comment
Share on other sites

If you're trying to interpolate between raw "d" strings, then not only would there need to be identical numbers of points in the start/end, but they'd also have to have identical path commands (so ONLY the numbers are changing). It's much cleaner to just use MorphSVGPlugin which solves all those problems for you. It'll let you use any number of points and it'll also figure out how to meld the path commands. Obviously that's only available to Club GreenSock members, through. 

 

Good luck!

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