alvsys
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by alvsys
-
-
Hi!
I am using ScrollTrigger in React and I am experiencing the following problem:
When I update any React State and I use
scrub:1
(or any number), the animation is reset and it is possible to see it jumping.This doesn't happen when
scrub
is set totrue
I've tried different methods available in the guides and read many forum topics but I haven't had success.
I wonder if this is possible keep the position when there is a re-render?
I'd appreciate any help
Thanks in advance
Scrolltrigger Scrub problem when React State changes
in GSAP
Posted
Hi @OSUblake, thank you very much! now it works like charm,
I checked lots of times for days and I couldn't see that detail newbie mistake, I put the focus in the wrong stuff.
Much appreciated 🙏
Cheers!