Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ( window.location.href.indexOf("#") > -1) {
- $('a[href*=\\#]').on('click', function(event) {
- event.preventDefault();
- $('html,body').animate({
- scrollTop: $(this.hash).offset().top
- }, 750);
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement