JavaScript desplazarse hasta la parte superior suave
window.scrollTo({top: 0, behavior: 'smooth'});
Lokesh003
window.scrollTo({top: 0, behavior: 'smooth'});
html {
scroll-behavior: smooth;
}
/* No support in IE, or Safari
You can use this JS polyfill for those */
http://iamdustan.com/smoothscroll/