jquery
The code creates an anchor element by querying the location hash of the current document and then animates the scrollTop property of the anchor element to be 100 pixels above the location hash.
$(document).ready(function() {
var anchor = window.location.hash;
$('html,body').animate({scrollTop: $(`${anchor}`).offset().top - 100}, 'slow');
});