Jump to content
Search Community

TweenMax will not load

ddupree43211 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

I am a beginner at coding, so this may seem dumb. I took a look at the start up video, setup my folders and everything. Then I pasted the CDN into my html linked my JS at the end. Then when I go to load it, it says TweenMax was used before it was identified. I also noticed that when I started to type TweenMax it did not auto populate any options, so I thought it was going to fail from that point and it did. I attached the file I am working with, any help is appreciated. :)

Testing.zip

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

Link to comment
Share on other sites

1. You can't embed .js in codepen the way you're doing it.  Click the gear on the javascript panel.  Then "QuickAdd" Greensock from the pull-down menu.  You don't need any external js src calls.

 

2.  Change your js to:

TweenMax.to(".plane", 2, {x: 600});

... and bob's your uncle.

  • Like 1
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...