// Mark section as loadinglet introLoading =true;
gsap.timeline({
ease:"power2.out",
scrollTrigger:{
trigger:'#section-intro',
pin:'.wrap',
start:"top top",
scrub:0.25,
snap:false,
onEnter:self=>{// Mark as loaded after first time enter event is fired// Would be same as on initif( introLoading ){// Mark as init after 1000ms
setTimeout(()=>{
introLoading =false;},1000);}},}});
ScrollTrigger
in GSAP
Posted
Maybe something like this: