text: const selector=$(".parent-container");for(let t=1;t<=4;t++)1===t?gsap.to(`.overlay-${t}`,{opacity:1,scrollTrigger:{trigger:`.overlay-${t}`,start:"top top",end:"bottom top",scrub:!0,invalidateOnRefresh:!0}}):gsap.to(`.overlay-${t}`,{opacity:1,scrollTrigger:{trigger:`.overlay-${t-1}`,start:()=>"bottom "+selector.innerHeight()/2.5,end:"bottom top",scrub:!0,invalidateOnRefresh:!0}});for(let t=1;t<5;t++)1===t?gsap.to(`#section-content-${t}`,3,{opacity:0,y:()=>selector.innerHeight()/2,scrollTrigger:{trigger:`.overlay-${t}`,start:"top top",end:"bottom center",scrub:!0,invalidateOnRefresh:!0}}):gsap.to(`#section-content-${t}`,3,{y:()=>selector.innerHeight()/2-selector.innerHeight()/10,opacity:1,scrollTrigger:{trigger:`.overlay-${t-1}`,start:"+=60%",end:"+=220",scrub:!0,invalidateOnRefresh:!0}});$(function(){for(let t=1;t<5;t++)$(`.bg${t}`).parallax({imageSrc:`https://res.cloudinary.com/gbrachetta/image/upload/ms4/backgrounds/bg-${t}.jpg`})});