Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
MohammedLR

Missing some installation code

Recommended Posts

I have developed this animation in CodePen but when I try to create a local HTML, CSS and JS it is not working. I think I am missing an installation line in the code, because I have the exact same code in the Pen and in my local files and the only difference relies in the ability to add a external script in the CodePen settings.

 

Here is the code I have in my local files.

https://bit.ly/3rLnj3k

See the Pen oNGKVEv by cacabla (@cacabla) on CodePen

Link to comment
Share on other sites

If that first link is an exact duplicate of your local code, it looks like you haven't loaded jQuery. These two lines of your JS call it:

var $hamburger = $('.hamburger');

$hamburger.on('click', function(e) {
  hamburgerMotion.reversed(!hamburgerMotion.reversed());
});

It is being loaded in your functional pen.

 

Hopefully that helps. Happy tweening.

:)

 

  • Like 2
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.
×