Jump to content
Search Community

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

Smedi test
Moderator Tag

Go to solution Solved by GreenSock,

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

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

  • Solution

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

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