Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $( document ).ready( function() {
- //Scroll anchors
- $('a[href^="#"]').click(function() {
- elementClick = $(this).attr("href");
- destination = $(elementClick).offset().top;
- if ($.browser.safari) {
- $('body').animate( { scrollTop: destination }, 1000 );
- } else {
- $('html').animate( { scrollTop: destination }, 1000 )
- }
- return false;
- });
- } );
Add Comment
Please, Sign In to add comment