Jump to content
Search Community

Should the morph plugin work on open paths?

JeffreyArts

Go to solution Solved by mvaneijgen,

Recommended Posts

Posted

I've got this situation where I'd like to morph a line into a different shape. Am I doing something wrong, or can the morph plugin only morph closed paths?

See the Pen JjgPJLw by sjeffff (@sjeffff) on CodePen.

  • Solution
Posted

No that should work, the only thing is your 'line' is not at a real position. I'm not sure what it is you're trying to do, but if you have a line at the bottom of the triangle it works? 

 

See the Pen yLmBXGv by mvaneijgen (@mvaneijgen) on CodePen.

  • Like 1
Posted

Thank you, that resolve the problem I was experiencing.

For context, I have a shape that I want to transition between to different forms. So my "line" is basically a placeholder to be updated by gsap (which gets its information from other svg shapes)

  • Like 1

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