hadijedank

Issue on javascript selector to GSAP

Recommended Posts

Hi... new guy come to the pool.

 

I'm Hadi. Followed tutorial from Petr/ihatetomatoes, and then the issues is come up.

First, all the header and navbar is working with tweenlite, but after I put the container which are the main-page and footer. It's not working anymore. What's wrong here?

And about the code pen, I don't know why the animation won't moving there. But still the code is working fine on my file that I mentioned previously.

I'm sorry, lil shy to come with noob question. But I don't have mentor to ask directly. Thanks for the help.

Regards,
Hadi

 

EDIT: omg, now in codepen all the animation is working well, but still in my file just header and its nav which working. But for footer and main-page still not. So, what is the problem actually?

 

 

Share this post


Link to post
Share on other sites

When something doesn't work check developer console by hitting F12 to see if you are getting any errors. Your demo was missing jQuery, you can add that from codepen settings.

 

Feel free to post GSAP related questions.

  • Like 3

Share this post


Link to post
Share on other sites

Nevermind guys. Just stupid html order. ☠️
 

I put all the "script tags" between header and main-page LOL.
 

5 minutes ago, Sahil said:

When something doesn't work check developer console by hitting F12 to see if you are getting any errors. Your demo was missing jQuery, you can add that from codepen settings.

 

Feel free to post GSAP related questions.

 

Thanks @Sahil for the reply & help, such an extreme fast & nice community. Will coming here again later. Thanks.

  • Like 2

Share this post


Link to post
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.