Scroll to div on click (show div on center screen) Ask code example
Example: on click scroll to div in center page
<script>
$("#contactbutton").click(function() {
$('html, body').animate({
scrollTop: $("#contactform").offset().top - $('#fixed-header').outerHeight()
}, 500);
});
</script>