SHARE
TWEET

Untitled

a guest Mar 23rd, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(document).ready(function(){
  2.   $('a[href*="#"]').click( function(){
  3.     var scroll_el = $(this).attr('href');
  4.     if ($(scroll_el).length != 0) {
  5.       $('html, body').animate({ scrollTop: $(scroll_el).offset().top }, 1000);
  6.     }
  7.      return false;
  8.   });
  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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top