Code Pen to Local system?

Hi All! I have moved Kevin's Code Pen https://codepen.io/kevinpowell/pen/BavVLra to my local system and every thing works except for the animation. Other than copy, paste, and linking the css and js to the HTML file is there something else I need to do to get this to work? Thank you.
7 Replies
ἔρως
ἔρως15mo ago
you probably have the wrong js path or you have the script in the head if it is in the head, move it to after the body or use defer if it doesn't work, you can put the css inline (in the head) and the javascript inline (at the end of the body) as well
Dingo
DingoOP15mo ago
Thank you for the suggestions. It now works as it should.
ἔρως
ἔρως15mo ago
you're welcome just out of curiosity, what did work for you?
Dingo
DingoOP15mo ago
Exporting the Code Pen to a zip file and working with the extracted files solved the issue.
ἔρως
ἔρως15mo ago
i see, it's good that it is working
Dingo
DingoOP15mo ago
After comparing the working and non-working code, the placement of the linked js file was the issue. Moving it from the head section to just before the closing body tag solved the issue. Thank you again for your assistance.
ἔρως
ἔρως15mo ago
you're welcome you might want to try to use defer instead, with the tag on the <head> it should work the same
Want results from more Discord servers?
Add your server