wayz Posted June 30 Share Posted June 30 hey the first page on my screen disappears during the entire duration of the scroll using scroll-trigger can someone help me with this. it reappears only after end crosses over scroll-start. 11zon_compressed.zip See the Pen wvQdyoZ?editors=0010 by rhaber (@rhaber) on CodePen Link to comment Share on other sites More sharing options...
Solution Rodrigo Posted June 30 Solution Share Posted June 30 Hi @wayz and welcome to the GreenSock forums! When using GSAP in a React environment always use GSAP Context: https://greensock.com/docs/v3/GSAP/gsap.context() Also take a look at the resources in this article: Finally we have a collection of starter templates in Stackblitz so you can fork one of them and illustrate your issue. Please don't include all the styles, components and everything from your project, just enough to show the problem you're having: https://stackblitz.com/@GreenSockLearning/collections/gsap-react-starters Hopefully this helps. Happy Tweening! Link to comment Share on other sites More sharing options...
wayz Posted July 1 Author Share Posted July 1 I appreciate the quick response the docs are really helpful. I was following a youtube tutorial and got so confused when i was not getting the same result even though i wrote the exact same thing. 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