Плавый скролинг до блока

jQuery(document).ready(function(){
	jQuery(".gotofirstblock").click( function (event) {
		event.preventDefault();

		jQuery([document.documentElement, document.body]).animate({
			scrollTop: jQuery("#first-block").offset().top
		}, 1200);
	});
});