bitworking / react-gsap

React components for GSAP
https://bitworking.github.io/react-gsap/
Other
568 stars 33 forks source link

ScrollTrigger.refresh() #66

Open MartinJohannesNilsen opened 2 years ago

MartinJohannesNilsen commented 2 years ago

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).

avenali5 commented 1 year ago

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