Jump to content
GreenSock

nvassalo

Members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by nvassalo

  1. Hi

     

    I'm running this very simple stagger animation, where I switch between 2 values on x by passing it a function, which was a common technique in gsap since ever. I noticed the animation behaves unpredictably and the staggers aren't linear, and seems it running 3 times and logging these their index values all over… I know i can use gsap.utils.wrap for this case, but this will be a common pattern in my GSAP animations and this left me wondering if somehow I'm messing up the way I should connect my GSAP animations to Svelte?

    image.png.2a4f2b5455aa900723b14ee0d5662386.pngimage.png.ed8dec08568eecd93f2ab8e76081e1aa.png

     

    Here's a Svelte REPL with the example:
    https://svelte.dev/repl/2add39882b9748758f2f8de72701cf0e?version=3.46.4

     

×