Hi,
I have this function:
$('.stagger-caption').each(function(){
var $this = $(this);
var $totalHeight = $this.closest('.stagger-slide').outerHeight(true) - $this.outerHeight(true);
const ST= ScrollTrigger.create({
trigger: $this,
start: "top top",
end: "+=" + $totalHeight,
pin: $this,
scrub: true,
invalidateOnRefresh: true
});
});
How can I update the END value on resize?
Thank you!