unbounce smooth scroll

<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('.lp-pom-form .lp-pom-button').unbind('click.smoothScroll').bind('click.smoothScroll', function(event) { event.preventDefault(); $('html, body').animate({ scrollTop: $( $(this).attr('href') ).offset().top }, speed); }); }); </script>
smooth scroll for unbounce

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.