Jump to content
GreenSock

RRorg

Ugly edge when morphing SVG

Go to solution Solved by RRorg,

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

For some reasons, the MorphSVG plugin is producing a strange little edge on the right corner of the SVG. Does someone of the pros have an idea how to fix this? :)

Thank you!

post-37918-0-23689700-1473279916_thumb.png

post-37918-0-56690600-1473279916_thumb.png

Link to comment
Share on other sites

  • Solution

Fixed it myself!

stroke-linecap:round;
stroke-linejoin:round;

did the trick!

  • Like 1
Link to comment
Share on other sites

Great! Thanks for posting the solution.

Link to comment
Share on other sites

Thanks for sharing your solution RRorg :)

Link to comment
Share on other sites

Another fix for those weird little pieces is to set a miter limit:

stroke-linejoin: miter; 
stroke-miterlimit: 1;

Happy morphing.

:)

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