Jump to content
Search Community

MorphSVGplugin: findShapeIndex doesn't respect GreenSockGlobals

wigglepixel 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

Thisone is for greensock, 'cause I don't know where else to put it, because this plugin is for clubmembers only and the plugin is not on github to respond there:

First of all, briljant new plugin!! This was a reason for me to immediately renew my club greensock! Finally a morphplugin that even works if the amount of points in the paths are not equal! Thanks! Nothing beats Greensock!

 

@greensock: just a minor detail: the findShapeIndex.js doesn't respect the greensock namespacing. So in my projects it's telling that TweenLite could not be found, because I set a namespace on the greensock lib.

All my projects work this way, so I'm gonna make it work on my side here.
But it would be great if this could be implemented in the lib for future updating of the code!

 

That said; Going back to play with the new toy! Thanks again. Very nice work!

Link to comment
Share on other sites

Hello wigglepixel, and Welcome to the GreenSock Forum!

 

Would you mind posting some code so we can see how you are creating your namespace and how you are calling findShapeIndex.js?

 

Also a codepen example will be very helpful in helping you, so we can see your code in context.

 

Here is a great video tut by GreenSock on how to create a codepen example.

 

Thank you very much. :)

  • Like 1
Link to comment
Share on other sites

Hello Jonathan,

 

What I mean by namespacing in this case is using the GreenSockGlobals object:

var gs = window.GreenSockGlobals = {};

// load greensock lib here

// your project here, with code like:
gs.TweenMax.to('#humpaLumpa', 2, { x: 10, ease: gs.Back.easeInOut });

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