jQuery scroll to element

jQuery scroll to target element:

<script>
$(function(){
	$("#click").click(function (){
		$('html, body').animate({
			scrollTop: $('.target').offset().top
		}, 2000);
	});
});</script>

Leave a Reply

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