Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function(){
- $('a[href*="#"]').click( function(){
- var scroll_el = $(this).attr('href');
- if ($(scroll_el).length != 0) {
- $('html, body').animate({ scrollTop: $(scroll_el).offset().top }, 1000);
- }
- return false;
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement