Answers for "scroll page to specific html div"

-1

scroll to specific div

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

Browse Popular Code Answers by Language