Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('nav li').click(function() {
- var pos = $('#' + this.dataset.id).position().top;
- $('html, body').animate({
- scrollTop: pos
- }, 1000);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement