Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deployment issue #51

Open
UzairAsi opened this issue Sep 20, 2021 · 1 comment
Open

Deployment issue #51

UzairAsi opened this issue Sep 20, 2021 · 1 comment

Comments

@UzairAsi
Copy link

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.

@wwkb123
Copy link

wwkb123 commented Oct 20, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants