Jump to content
Search Community

alvsys

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by alvsys

  1. 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 scrubis set to true

    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

    See the Pen WNdbVZL by alvsys (@alvsys) on CodePen

×
×
  • Create New...