Jump to content
Search Community

findShapeIndex tool broken using latest GSAP

Sites Built Fast test
Moderator Tag

Recommended Posts

Hi all,

 

We just became ShockinglyGreen, and we're trying to use the findShapeIndex() tool to fine tune an implementation of MorphSVGPlugin, but we're not having any luck due to the following error:

Uncaught TypeError: TweenLite.selector is not a function
    at findShapeIndex (findShapeIndex.js:143)

 

Update 1

Attempting to hack my way through this, I tried:

 

window.TweenLite = window.gsap;
TweenLite.selector = function(element) {
  return element;
};
findShapeIndex(document.getElementById('#shape1'), document.getElementById('#shape2'));

But now I get the following error:

Uncaught TypeError: MorphSVGPlugin.pathDataToRawBezier is not a function
    at findShapeIndex (findShapeIndex.js:150)

It seems like the findShapeIndex tool has not been updated for the latest version(s) of GSAP. Does anyone have an updated version?

See the Pen wvMLMza by openowlnight (@openowlnight) on CodePen

Edited by NightOwl
New findings
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...