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