Scroll to section

$(document).ready(function () { $('a.scrollinglink').click(function () { $('html, body').animate({ scrollTop: $($(this).attr('href')).offset().top - 50 }, { duration: 500, easing: 'swing' }); return false; }); });

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.