Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(".scroll").on("click","a", function (event) {
- $h = $('#header').innerHeight();
- event.preventDefault();
- var id = $(this).attr('href'),
- top = $(id).offset().top - $h;
- $('body,html').animate({scrollTop: top}, 900);
- });
Add Comment
Please, Sign In to add comment