JimmyCarter Posted October 31, 2020 Share Posted October 31, 2020 Hello, I've tried searching the forums and I can't even figure out what to search for. I'm a beginner. Sorry if my terminology is wrong. I haven't been able to get GSAP to work, I'm specifically trying to use scrollTrigger. I'm trying to serve my page locally through XAMPP to preview while developing, I don't know if this is my problem or not, but it's working fine with everything (css, html, php) but I can't get my GSAP commands to do anything. I've tried creating an extremely simple starter file, and it still isnt' working. As far as I'm aware, this should work. Please let me know if I'm not implementing something correctly in my code, or if you have and ideas on what my problem may be. Thank you for your time and help. Link to comment Share on other sites More sharing options...
ZachSaucier Posted October 31, 2020 Share Posted October 31, 2020 Hey JimmyCarter and welcome to the GreenSock forums. The only issue that I see is that you have some invalid JS as the x property value. Instead of x: 500px (which is invalid JS) it should be just x: 500. If you need to use units other than the default you should put it in a string: x: "500%" for example. That error should show up in your browser's developer tools console when running your project. If things are still not working, please let us know what other errors you're seeing in your console. 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