Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('.scroll').click(function () {
- var scroll_el = $(this).attr('href');
- if ($(scroll_el).length != 0) {
- $('html, body').animate({
- scrollTop: $(scroll_el).offset().top -40
- }, 400);
- }
- return false;
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement