jQuery: Scroll to ID element
$('a[href*=#]').click(function(){ $('html, body').animate({ scrollTop: $( $.attr(this, 'href') ).offset().top }, 700, 'linear'); return false; });