Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript"> lp.jQuery(function($) {
- // The speed of the scroll in milliseconds
- var speed = 1000;
- // Find links that are #anchors and scroll to them
- $('a[href*="#"]:not([href="#"])').unbind('click.smoothScroll').bind('click.smoothScroll', function(event) {
- event.preventDefault();
- $('html, body').animate({ scrollTop: $( $(this).attr('href') ).offset().top }, speed);
- });
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement