diff --git a/script2.js b/script2.js index 2f2a871..1041a17 100644 --- a/script2.js +++ b/script2.js @@ -208,29 +208,29 @@ document.addEventListener('DOMContentLoaded', function () { // END SCROLLY. UNSTICK - ScrollTrigger.create({ - trigger: '.scrolly-section[data-section-label="end"]', - start: () => { - const backgroundRect = background.getBoundingClientRect(); - return `top ${offsetInPixels}px`; - }, - onEnter: () => { - - gsap.to('.scrolly-background', { - position: 'relative', - duration: 0.5, - ease: 'power1.inOut' - }); - }, - onLeaveBack: () => { - - gsap.to('.scrolly-background', { - position: 'sticky', - duration: 0.5, - ease: 'power1.inOut' - }); - } - }); + // ScrollTrigger.create({ + // trigger: '.scrolly-section[data-section-label="end"]', + // start: () => { + // const backgroundRect = background.getBoundingClientRect(); + // return `top ${offsetInPixels}px`; + // }, + // onEnter: () => { + + // gsap.to('.scrolly-background', { + // position: 'relative', + // duration: 0.5, + // ease: 'power1.inOut' + // }); + // }, + // onLeaveBack: () => { + + // gsap.to('.scrolly-background', { + // position: 'sticky', + // duration: 0.5, + // ease: 'power1.inOut' + // }); + // } + // }); // SCROLLY CAPTIONS FADE INS