Jump to content
Search Community

MotionPathHelper undefined

Dabeed

Go to solution Solved by OSUblake,

Recommended Posts

Posted

On Wordpress:

 

image.png.ffc643dafac8c44b1466ed7ca59559cd.png

 

Everything appears to be loading:

 

image.png.5eb41f0c50678881e5b77e4eb77e8e6e.png

 

image.png.cf34be4da608712ac2d8f0d0fa20799f.png

 

Code in custom-gsap.js:

 

image.png.5db36e3413ea87d96a9ad05b100d727e.png

 

If I don't register MotionPathHelper the animation runs fine. If MotionPathHelper is registered, the animation does not run and I get this:

 

image.png.832f28f1fc865a21fd6c483e4278201b.png

 

Those two issues being:

 

image.png.bff7cfe26d2ee320ffd60611fb629323.png

 

image.png.20b81482a0cb4b26ef595e969c785338.png

 

Not sure if I need to somehow enqueue the files in /utils/, but regardless MotionPathHelper itself is still undefined.

I'm guessing this has something to do with Wordpress so I don't have a codepen set up (I assume it works there fine). I do have this up on a staging site and can provide access if that will help.

 

Wondering what I need to do so MotionPathHelper is actually recognized, and then also what I may need to do to make sure it can see/load the /utils/ files.

 

Thank you!

 

 

 

  • Solution
Posted

Hi Dabeed,

 

It looks like you are using the ES Modules version of the file, when you should be using the file inside minified folder.

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