Website Code Reference

Reference to code that I use a lot of the time on the websites I develop

jQuery scroll event to use when sticky headers get in the way. Adjust the – 90 to your needs:

$(document).on('click', 'a[href^="#"]', function (event) {
    event.preventDefault();
    $('html, body').animate({
        scrollTop: $($.attr(this, 'href')).offset().top - 90
    }, 500);
});