$(document).ready(function () {
$('a.scrollinglink').click(function () {
$('html, body').animate({
scrollTop: $($(this).attr('href')).offset().top - 50
}, {
duration: 500,
easing: 'swing'
});
return false;
});
});
1 Response
Write a 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.