daily pastebin goal
11%
SHARE
TWEET

Untitled

a guest Feb 13th, 2018 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(".scroll").on("click","a", function (event) {
  2.   $h = $('#header').innerHeight();
  3.   event.preventDefault();
  4.   var id  = $(this).attr('href'),
  5.   top = $(id).offset().top - $h;
  6.   $('body,html').animate({scrollTop: top}, 900);
  7.  });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top