greensock / GSAP

GSAP (GreenSock Animation Platform), a JavaScript animation library for the modern web
https://gsap.com
19.83k stars 1.72k forks source link

undefined gsdevtools #264

Closed davvyy00 closed 6 years ago

davvyy00 commented 6 years ago

The script loads but I get an undefined error when trying to access variable GSDevTools

jackdoyle commented 6 years ago

Sorry to hear about the trouble. I'd be happy to help. Can you provide a reduced test case? Maybe a codepen or something? There's a codepen-specific GSDevTools file that you can load at https://s3-us-west-2.amazonaws.com/s.cdpn.io/16327/GSDevTools.min.js (again, only for on codepen.io). It's just very difficult to troubleshoot blind. I'm curious: where did you get the GSDevTools.min.js file?

davvyy00 commented 6 years ago

I figured it out, I needed to included other js files, tweenmax and timelinemax, you can close

jackdoyle commented 6 years ago

Ah yes, GSDevTools requires TweenMax (or TweenLite, CSSPlugin, and TimelineLite which are all inside TweenMax). Glad you got it working.