Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jQuery(function( $ ){
- // Smooth scrolling when clicking on a hash link
- $('a[href^="#"]').on('click',function (e) {
- e.preventDefault();
- var target = this.hash;
- var $target = $(target);
- $('html, body').stop().animate({
- 'scrollTop': $target.offset().top-100
- }, 900, 'swing');
- }); });
Add Comment
Please, Sign In to add comment