Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
kathryn.crawford

Greensock does nothing in browser

Recommended Posts

So I have a pen here, and it's all working just fine, but my corresponding code on my local machine does nothing. I can see that the script is loading, but no animation is taking place. I'm not getting errors or anything, just nothing is happening, so I have no idea how to debug! Ideas?

 

post-39440-0-93341800-1450978588_thumb.png

post-39440-0-15402200-1450978589_thumb.png

See the Pen gPwgQa by kathryncrawford (@kathryncrawford) on CodePen

Link to comment
Share on other sites

I bet you are using an old version of TweenMax from before it had "cycle" :)

 

Note that the CDN host has refused to update the "latest" directory moving forward, so that is stuck at 1.17.0. We recommend linking directly to a version, like 1.18.2.

  • Like 1
Link to comment
Share on other sites

Hi kathryn.crawford  :),

 

Jack already gave you the answer, but I was testing your pen locally and can confirm that was the problem. I was just too slow to answer first.  :-D

 

Just change the link and you'll be all set:

<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/1.18.2/TweenMax.min.js"></script>

PS I was expecting Bill Murray and instead I saw Nicolas Cage. Are you switching celebrities for your CodePens?  :-P

  • Like 1
Link to comment
Share on other sites

Thanks guys! It was loading 1.18.0 apparently. @PointC, you gotta switch it up sometimes, and besides, Cage images can be gifs!

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