madselsoe Posted May 25, 2020 Share Posted May 25, 2020 Hi guys, I am a beginner in front end development, and currently taking a course on SuperHi to learn HTML, CSS and JS. I am trying to use the SplitText-plugin, but I can not get it to work. The regular GSAP plugin is working fine. I am getting this error: SplitText is not defined. Url to site: https://politiken-creative.superhi.com/ Can someone figure out what I am doing wrong? Thanks a lot, and sorry if my question is stupid 🙃 Link to comment Share on other sites More sharing options...
ZachSaucier Posted May 25, 2020 Share Posted May 25, 2020 Hey madselsoe and welcome to the GreenSock forums! Thanks for supporting GreenSock by being a Club member. The issue is simply that your main.js file is loaded before the SplitText JS file. Switch the order (so that the main.js file is after the SplitText file) and it should be defined There's a whole video of how to include GSAP with Club plugins on the installation page. 3 Link to comment Share on other sites More sharing options...
madselsoe Posted May 26, 2020 Author Share Posted May 26, 2020 Thank you so much Zach, that did it! Learning new stuff everyday, looking forward to learn a lot of GSAP in the coming months 😀 Have a nice day! 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