Alex.Marti
Community Answers
-
Alex.Marti's post in ScrollTigger animation "pop" because of ScrollSmoother was marked as the answer
Thanks a lot @Cassie
Because of what you said I found the solution.
I use the React Hook useLayoutEffect() to initialize the ScrollSmoother and the hook useEffect() to initialize the GSAP animation.
As what I understood, useLayoutEffect() is called before useEffect(). Anyway, it's working nicely now, thanks to you!
I changed my codepen acordily
Alex