//scroll to 400 pixels down from the top gsap.to(window, { duration: 2, scrollTo: 400 }); //or to scroll to the element with the ID "#someID" gsap.to(window, { duration: 2, scrollTo: "#someID" }); //scroll #someID into view with 50 pixels from the top (like a margin) gsap.to(window, { duration: 2, scrollTo: { y: "#someID", offsetY: 50 } });