Javascript - Animate scroll to element
$('.email').click(function() { $('html, body').animate({ scrollTop: $("#contact").offset().top-100 }, 2000); });