Answers for "javascript click to scroll to section"

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
0

how to add scroll to div onclick

.first {
    width: 100%;
    height: 1000px;
    background: #ccc;
}

.second {
    width: 100%;
    height: 1000px;
    background: #999;
}
Posted by: Guest on November-22-2020

Code answers related to "javascript click to scroll to section"

Code answers related to "Javascript"

Browse Popular Code Answers by Language