Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function scrollTo($link, e) {
- var hash = $link.prop("hash");
- if (hash && $(hash).length > 0) {
- e.preventDefault();
- $.scrollTo($(hash), 2000, {
- 'axis': 'y',
- 'onAfter': function() {
- window.location.hash = hash;
- }
- });
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement