I'm new to GreenSock and I encountered a rather confusing error when using scroll triggers with reactjs.
Same JSX code but I get two different results on Codeandbox and on vscode, I'm not sure if this is a bug on my dev environment so here is the video I recorded the error: https://streamable.com/m0kvca
here is my code on Codeandbox, everything is very similar and there is no difference but the result is different: :Codeandbox link
Scrolltrigger does not work properly when used with ReactJS
in GSAP
Posted
I'm new to GreenSock and I encountered a rather confusing error when using scroll triggers with reactjs.
Same JSX code but I get two different results on Codeandbox and on vscode, I'm not sure if this is a bug on my dev environment so here is the video I recorded the error:
https://streamable.com/m0kvca
here is my code on Codeandbox, everything is very similar and there is no difference but the result is different: :Codeandbox link
here is my code in app.js file
làm ơn giúp tôi