SHARE
TWEET

Untitled

a guest Jul 21st, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $('.scroll').click(function () {
  2.    var scroll_el = $(this).attr('href');
  3.    if ($(scroll_el).length != 0) {
  4.       $('html, body').animate({
  5.          scrollTop: $(scroll_el).offset().top -40
  6.       }, 400);
  7.    }
  8.    return false;
  9. });
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