yuma-watanabe
12/19/2016 - 4:05 AM

Hover Effect jQuery

Hover Effect jQuery

function HoverEffect($target, cancelClass, speed) {
	$target.hover(
		function() {
			if($(this).hasClass(cancelClass) == false) {
				$(this).stop().fadeTo(speed, 0.6);
			}
		},
		function() {
			$(this).stop().fadeTo(speed, 1);
		}
	);
}
HoverEffect($target,className, speed);