Jump to content
Search Community

"gsap|Cubic .... is not defined" when bundling modules

hand2441 test
Moderator Tag

Recommended Posts

Hey hand2441 and welcome to the GreenSock forums! 

 

You need to import GSAP into each file that you want to use it in. So you have to import it in both a.js and b.js if you want to use it in both. 

 

We also highly recommend using GSAP 3's syntax, especially the condensed string form for your eases. For example, "power3" instead of Cubic.easeOut. See the easing docs for more information. 

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...