Capítulo 346 de 411
Forces the ScrollTrigger instance to re-calculate its start and end values (the scroll positions where it'll be activated).
// create a timeline with a ScrollTrigger
const tl = gsap.timeline({ scrollTrigger: {...}});
// after adding all animations to that timeline, we can manually force it to calculate its start/end (on just that instance):
tl.scrollTrigger.refresh();
// or cause ALL ScrollTrigger instances to refresh using the static method:
ScrollTrigger.refresh();