Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(function() {
- $('a[href^="#"]').click(function (){
- var elementClick = $(this).attr("href");
- var destination = $(elementClick).offset().top - 60;
- jQuery("html:not(:animated), body:not(:animated)").animate({scrollTop: destination}, 800);
- return false;
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement