Creating a smooth scroll within a page

jQuery 0 Comment

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;
	});
});
//  }

Leave a Reply

Your email address will not be published. Required fields are marked *