Answers for "html button click go to section"

-1

scroll to specific div

$(window).scroll(function() {
    $('html, body').animate({
        scrollTop: $("#myDiv").offset().top
    }, 2000);
});
Posted by: Guest on March-24-2020
0

html button click go to section

<html>
  <a href="#down">Click Here to Smoothly Scroll Down</a>
  <div id="down">
    <h1>You are down!</h1>
  </div>
</html
Posted by: Guest on August-31-2021

Code answers related to "html button click go to section"

Browse Popular Code Answers by Language