daily pastebin goal
7%
SHARE
TWEET

Untitled

a guest Sep 18th, 2018 47 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. $(document).on('click', 'a[href^="#"]', function (e) {
  2.     e.preventDefault();
  3.  
  4.     $('html, body').animate({
  5.         scrollTop: $($.attr(this, 'href')).offset().top
  6.     }, 500);
  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