Answers for "on click of button scroll to div smooth"

CSS
1

smooth scroll button by element id

html {
  scroll-behavior: smooth;
}
Posted by: Guest on December-12-2020
0

smooth scroll button by element id

$('#myButton').click(function() {
   $.scrollTo($('#myDiv'), 1000);
});
Posted by: Guest on October-30-2021

Code answers related to "on click of button scroll to div smooth"

Browse Popular Code Answers by Language