html { scroll-behavior: smooth; } /* No support in IE, or Safari You can use this JS polyfill for those */ http://iamdustan.com/smoothscroll/
window.scrollTo(300, 500); //X=300 and Y=500