beaukim Posted March 13, 2022 Share Posted March 13, 2022 I've used pixi plugin an put gsap.registerPlugin(PixiPlugin); on top of js file. and it keeps telling that plugin is not defined. How should I do? <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.9.1/gsap.min.js"></script> <script src='https://cdnjs.cloudflare.com/ajax/libs/pixi.js/4.5.5/pixi.min.js'></script> <script src='https://cdnjs.cloudflare.com/ajax/libs/gsap/1.20.2/TweenMax.min.js'></script> <script src='https://cdnjs.cloudflare.com/ajax/libs/gsap/1.20.2/plugins/PixiPlugin.min.js'></script> <script src="./script.js"></script> Link to comment Share on other sites More sharing options...
akapowl Posted March 13, 2022 Share Posted March 13, 2022 Hello beaukim gsap.registerPlugin is only available since GSAP3 if I am not mistaken. While you are loading the latest version of GSAP (3.9.1), you are loading a very old version of the PixiPlugin (and also an old version of GSAP, i.e. TweenMax) which you probably should avoid. Does this work better for you? <script src="https://cdnjs.cloudflare.com/ajax/libs/pixi.js/4.5.5/pixi.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.9.1/gsap.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.9.1/PixiPlugin.min.js"></script> <script src="./script.js"></script> 3 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