Hi,
I've been using ScrollTrigger.matchMedia and wanted to pass in a dynamic variable for the media values. Example below.
[`(min-height:${footer.offsetHeight)`]: function(){
},
This seems to work fine initially but starts to go wrong when resizing the screen.
My question is, is there a way to update the dynamic value of the matchMedia query when a screen is resized or are these values set on load? I have a custom window resize event listener where I initiate ScrollTrigger.refresh() manually, which works as intended for the associated triggers with invalidateOnRefresh. Would be great to find out if there is something similar for matchMedia.