react-gsap
react-gsap copied to clipboard
Deployment issue
I have deployed my project on firebase and the react-gsap scrolltrigger is not working I get this error in the console: Invalid property scrollTrigger set to {trigger: Array(1), start: '-10px top', end: '-5px center', scrub: 0.5} Missing plugin? gsap.registerPlugin() The react-gsap scrolltrigger is working perfectly on localhost.
besides gsap.registerPlugin(ScrollTrigger), you also need gsap.core.globals("ScrollTrigger", ScrollTrigger); below that line, spent a few hours to just figure this out. Hope this helps