Jump to content


Works locally, doesn't work uploaded to server

Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

This is my first animation, this works fine locally but when I upload it to the server it doesn't animate and I can't figure out why. Any suggestions on what I did wrong?

See the Pen yJdExg by savecraig (@savecraig) on CodePen

Link to comment
Share on other sites

Your CodePen doesn't work because you have <script> tags in the JavaScript window.


Here is your Pen with the tags removed and GSAP included.


See the Pen yJdEAb by joemidi (@joemidi) on CodePen

  • Like 2
Link to comment
Share on other sites

Thank you, good to know for the future. I put it on CodePen to show my code, in the final file when I upload to a server the file doesn't animate. Does my code indicate anything that I did wrong? I'm uploading an HTML file to the server, is that the wrong way to do it?


I went through all of the starter documents, I don't see where I went wrong.

Link to comment
Share on other sites

I see in your codepen that you dont have TweenMax loaded as a script.


In codepen you can add JS file links by clicking the gear icon in the JS panel and then a modal will flyout and then you can add TweenMax there.


You can see that joe_midi added TweenMax js file for you in the JS panel scripts .. click the gear icon to the words JS.


Make sure your loading TweenMax :)

  • Like 1
Link to comment
Share on other sites

Turns out it was the server I uploaded to, it animates fine on a different server, thanks for the help.

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.