marciofmjr
5/4/2018 - 12:52 AM

scrollPageTo

Function responsive for create anchor scroll effect

function scrollPageTo(target){
	if($("body").hasClass('home')){
		$("html, body").stop();
		var to = jQuery(target).offset().top;
		$("html, body").stop().animate({scrollTop:to},500);
	}else{
		setCookie("scrollPageTo",target,"1");
		window.location.href = "/";
	}
}