Jump to content
Search Community

Mikhail_Meal last won the day on December 25 2022

Mikhail_Meal had the most liked content!

Mikhail_Meal

Premium
  • Posts

    1
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Mikhail_Meal

  1. This isn't a question. I'm posting this here because it took me about half a day to realize what's going on. Problem: If you use a from tween the animation get's stuck in the from position OR it animates a very small portion of the start of this tween. Solution: Go to your index.js file and remove the <React.StrictMode> wrapper around your rendered Root component. Explanation (My best guess): The tween actually is fully animating. You can check with onStart/onComplete callbacks. Strict mode causes your components to mount twice. Since GSAP has its own state management system you've created two instances of the from tween. These are competing with each other. Apologies if this is written in the documentation somewhere. I didn't see it. Happy Tweening.
×
×
  • Create New...