JqueryNo Comments

default thumbnail

Replace button with your click button id or class and replace your section id or class. If you want to give margin in scrolled section, then replace with 80

$("button").click(function() {
$("html, body").animate({
scrollTop: $("#your-section").offset().top – 80
}, 600);
});

Be the first to post a comment.

Add a comment