Jump to content

George Litos

  • Posts

  • Joined

  • Last visited

George Litos's Achievements



  1. Ok. I just found the answer. Sorry for the annoyance. Inside a useEffect hook, just insert ScrollTrigger.refresh() with input array of states that create the issue useEffect(() => { ScrollTrigger.refresh(); }, [state1, state2, ...]);
  2. Hi! I face a similar problem with ScrollTrigger. In a React app some data are fetched asynchronously and the dimensions of their container changes. The problem is that the markers of the pre-existing static elements (2 paragraphs in my case) that are underneath these dynamic elements don't adapt to this change. Is there any fix for this issue? Thanks!