<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
$('a[href^="#"]').on('click',function(e) {
e.preventDefault();
var target = this.hash,
$target = $(target),
$calculus = ( $target.offset().top - 75 ),
$target_to = $calculus.toFixed();
$('html, body').stop().animate({
'scrollTop': ($target_to+'px')
}, 900, 'swing');
});
});
</script>