react-gsap icon indicating copy to clipboard operation
react-gsap copied to clipboard

Deployment issue

Open UzairAsi opened this issue 3 years ago • 1 comments

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.

UzairAsi avatar Sep 20 '21 01:09 UzairAsi

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

wwkb123 avatar Oct 20 '21 19:10 wwkb123