window.__STYLEGALLERY_ASSETS__={}; gsap.registerPlugin(ScrollTrigger, ScrollSmoother); let smoother = ScrollSmoother.create({ smooth: 2, effects: true, normalizeScroll: true }); ScrollTrigger.create({ trigger: ".shape", pin: true, start: "center center", end: "+=300" }); document.querySelector("button").addEventListener("click", (e) => { smoother.scrollTo(".shape", true, "center center"); });