Jump to content
Search Community

Cannot import TweenMax.min.js in Wordpress

tester1443 test
Moderator Tag

Recommended Posts

Trying to use TweenMax.min.js for a script on a Wordpress site, getting this error in the dev console. Any ideas?

TweenMax.min.js:16 
 Uncaught TypeError: Cannot read properties of undefined (reading 'greensock')
    at Function.<anonymous> (TweenMax.min.js:16:12136)
    at c.check (jquery.themepunch.to0&ver=4.1.35:59:815)
    at new c (jquery.themepunch.to…&ver=4.1.35:59:1094)
    at t._gsDefine (jquery.themepunch.to…&ver=4.1.35:59:1144)
    at TweenMax.min.js:16:12028
    at TweenMax.min.js:16:16680
Link to comment
Share on other sites

It's pretty tough to troubleshoot without a minimal demo - the issue could be caused by CSS, markup, a third party library, your browser, an external script that's totally unrelated to GSAP, etc. Would you please provide a very simple CodePen or CodeSandbox that demonstrates the issue? 

 

By the way, TweenMax.min.js is VERY old. Is there are particular reason you aren't using a more modern version of the library? There have been tons of improvements and there's no need for TweenMax anymore  - it was combined with TweenLite, TimelineLite, and TimelineMax into a single, simplified "gsap" object. See

 

Here's a starter CodePen that loads all the plugins. Just click "fork" at the bottom right and make your minimal demo

See the Pen aYYOdN by GreenSock (@GreenSock) on CodePen

 

Once we see an isolated demo, we'll do our best to jump in and help with your GSAP-specific questions. 

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