AASAS1994 Posted January 6, 2021 Share Posted January 6, 2021 When I create a project on my VC (Visual Studio Code) and Installed the GSAP, It's not working!! all animation didn't work. but when I write the code on codepen it just works normally. then I export the code from codepen to my computer and its works. why did that happen? See the Pen BaLVBMM by AhmadShommari (@AhmadShommari) on CodePen Link to comment Share on other sites More sharing options...
ZachSaucier Posted January 6, 2021 Share Posted January 6, 2021 Hey AASAS1994 and welcome to the GreenSock forums. It sounds like you didn't install or import GSAP correctly. Exactly where you went wrong is impossible for us to say. I highly recommend carefully going through the GSAP installation page and the video(s) therein. Perhaps it's because your custom JS script is loaded before you load GSAP and the plugins? Try putting your custom JS script after GSAP and its plugins. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now