Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
Smedi

No entrys in console - morphSVG - precompile and shapeIndex: 'log'

Recommended Posts

I have a little animation with the morphSVG plugin and would use the precompiled calculations for performance optimizing. So i use precompile: "log", but in the console is nothing to see. Same on shapeIndex: "log". I was wondering why - it seems correct to me.

See the Pen eWgrEp by Smedia (@Smedia) on CodePen

Link to comment
Share on other sites

Ah, that's because you're not using <path> elements. Those are much more flexible. The easy fix would be to convert your <polyline>/<polygon> elements to <path> elements which is super easy with:

MorphSVGPlugin.convertToPath("polygon, polyline");

Does that help? Sorry about any confusion there. I've added a note to the docs now. 

  • Like 2
Link to comment
Share on other sites

Great! Thank you very much - it works.

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