jwalker44
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by jwalker44
-
-
Hi - I have a simple local website built with Wordpress. GSAP works great here. I have the auth token loaded in my npmrc file and am enqueueing the scripts I need (gsap.min.js and ScrollTrigger.min.js). However, when I copy the files up to my production site (all files match at this point), ScrollTrigger is not working. I'm registering it in my .js file ( gsap.registerPlugin(ScrollTrigger); ) and again it works perfect on my local site. I have searched and not found a solution that helps. Also tried adding (lazy:false) with no luck. I feel like I am missing how to correctly install/use gsap on production server. I've also watched the video on how to install - still think I am missing something. Can anyone give me simple/clear instructions on how to push local site using gsap successfully to a production environment? Thanks!!!!
GSAP with Wordpress - Dev vs Prod Environment
in GSAP
Posted
I am calling all the gsap code including the registerPlugin in the jquery load event when all the dom elements should be created. If it is helpful the page with the ScrollTrigger is here: https://jwalker44.com/aerotropolis/ (the images in the green "Aerotropolis" section half way down the page should be animating in). This works great on my local site. I'm not seeing any gsap related errors in the console... Other animations using gsap but not the ScrollTrigger addon work ok.