Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $("a[href*=\#]:not([id=\#pills-home-tab])").on("click", function (e) {
- var anchor = $(this);
- $('html, body').stop().animate({
- scrollTop: $(anchor.attr('href')).offset().top
- }, 777);
- e.preventDefault();
- return false;
- });
- <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>
Add Comment
Please, Sign In to add comment