Jump to content
Search Community

Fritze

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by Fritze

  1. Thank you, that clarifies my mistake in no uncertain terms. I have to say that sometimes it's really hard for me to recognize things around React. Things for me are far more intuitive with good old selectors in a more native environment like shown in your example. However, it is wonderful that GSAP minimizes the use of useRefs by useContext() so wonderfully. I'm really grateful, as it absolutely reduces error sources and code quantity for me. Translated with www.DeepL.com/Translator (free version)
  2. @akapowl Thank you so much for helping me out and the wonderful welcome. You are a legend. As you have probably guessed, I am new to this reactive and component driven approaches. But if I get it right gsap.context() is brilliant and makes it totally handy and possible to have amazing animations on component level.
  3. Hi guys. I'm trying to implement a reusable component with ScrollTrigger, but I'm afraid I got something wrong. What I want to achieve is to transfer the ScrollTrigger animation to a component that I can use multiple times and in multiple other components. Is this possible? I tried to implement it in a next.js application and created a minimal codepen using React. I hope that my problem will become clear. Thanks a million for your amazing lib btw.
×
×
  • Create New...