Creating smooth Scroll within a page by clicking an anchor link.
// document ready {
$(function() {
$('a[href^="#"]').click(function() {
$('html,body').animate({scrollTop:$(this.hash).offset().top}, 200);
return false;
});
});
// }
Just another WordPress site
// document ready {
$(function() {
$('a[href^="#"]').click(function() {
$('html,body').animate({scrollTop:$(this.hash).offset().top}, 200);
return false;
});
});
// }