Share Posted January 19, 2022 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 More sharing options...
Solution Solution Share Posted January 19, 2022 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? 3 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now