SyntaxFix
Write A Post
Hire A Developer
Questions
$('a[href*=#]').click(function(event){ $('html, body').animate({ scrollTop: $( $.attr(this, 'href') ).offset().top }, 500); event.preventDefault(); });
this worked perfect for me