Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(".scrollToElement").on("click", function( e ) {
- e.preventDefault();
- $("body, html").animate({
- scrollTop: $( $(this).attr('href') ).offset().top
- }, 600);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement