Answers for "javascript scroll to top smooth"

2

javascript scroll to top smooth

window.scrollTo({top: 0, behavior: 'smooth'});
Posted by: Guest on October-01-2020
12

smooth scroll css

html {
  scroll-behavior: smooth;
}

/* No support in IE, or Safari
You can use this JS polyfill for those */
http://iamdustan.com/smoothscroll/
Posted by: Guest on March-18-2020

Code answers related to "javascript scroll to top smooth"

Code answers related to "Javascript"

Browse Popular Code Answers by Language