Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Ensure scroll :
- var anchorSelector = 'span' + window.location.hash;
- var $element = $(anchorSelector);
- $('html, body').animate({
- scrollTop: $element.offset().top
- }, 400);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement