Answers for "smooth scroll button by element id"

0

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
0

smooth scroll button by element id

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

Browse Popular Code Answers by Language