SHARE
TWEET

Untitled

a guest Feb 18th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $("a[href*=\#]:not([id=\#pills-home-tab])").on("click", function (e) {
  2.     var anchor = $(this);
  3.     $('html, body').stop().animate({
  4.         scrollTop: $(anchor.attr('href')).offset().top
  5.     }, 777);
  6.     e.preventDefault();
  7.     return false;
  8. });
  9.    
  10. <a class="nav-link active" id="pills-home-tab" data-toggle="pill" href="#pills-home" role="tab" aria-controls="pills-home" aria-selected="true">Материалы</a>
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