react-gsap icon indicating copy to clipboard operation
react-gsap copied to clipboard

ScrollTrigger.refresh()

Open MartinJohannesNilsen opened this issue 3 years ago • 1 comments
trafficstars

Is there a way of implementing the refresh method? When conditional rendering another component, the scrolltrigger components is sent down the screen, but the start/end triggers are not refreshed/re-calculated. Have tried calling the ScrollTrigger.refresh() method, but does not seem to be the solution (I hope such a simple solution is available).

MartinJohannesNilsen avatar May 28 '22 14:05 MartinJohannesNilsen

Hi @MartinJohannesNilsen have you found out a way to do this so far?

avenali5 avatar Apr 24 '23 00:04 avenali5