Jump to content
Search Community

MotionPathHelper Edit Polygon

michaelsboost test
Moderator Tag

Go to solution Solved by GreenSock,

Recommended Posts

I feel like this is kind of a stupid question. So, I pulled up the 

See the Pen wvgGxEr?editors=0010 by GreenSock (@GreenSock) on CodePen

 and I wanted to see if it works with a polygon element. So I gave it a test and obviously it doesn't.

 

My question is 1 why? and 2 is this a plan to extend this plugin to add polygon support in the future?

See the Pen LYzvvNe by michaelsboost (@michaelsboost) on CodePen

Link to comment
Share on other sites

  • Solution

Nah, not a "stupid" question at all. It wouldn't work because MotionPathHelper is supposed to let you add points, make them curvy, pull control points, etc. (total flexibility) which would all be impossible with a <polygon>. 

 

It's super easy to solve, though - just use MotionPathPlugin.convertToPath()! 

See the Pen RwLOOoe?editors=1010 by GreenSock (@GreenSock) on CodePen

 

Does that clear things up? 

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