Jump to content
Search Community

TimelineLite is not defined

Thales Ribeiro test
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

Hi there, 

i'm trying to do a basic animation for a button and it's not working when i put my code on my website.

 

Here's the CodePen page(it works here):

See the Pen KnfLk by anon (@anon) on CodePen

 

 

When i drop that code in my website i get this:

 

Nothing happens basically, and even the console.info doesn't work.

 

 

  1. Uncaught ReferenceError: TimelineLite is not defined custom.js:25
    1. (anonymous function)custom.js:25
    2. x.extend.eachjquery.js:590
    3. x.fn.x.eachjquery.js:237
    4. (anonymous function)

 

    1.  
Link to comment
Share on other sites

Make sure that you are including TweenMax before whatever code you have that creates the timelines. Just sounds like either TweenMax isn't included at all, or it is included after your calls to TimelineLite.

 

Also, the TweenMax file already includes CSSPlugin and Easepack so you shouldn't include those on your page.

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.
×
×
  • Create New...