bratsun
2/25/2015 - 2:42 PM

Simulate hover on touch devices

Simulate hover on touch devices

function touchHover() {
	$('.project').on('touchstart', function(e){
		var t = $(this);
		t.addClass('hover');
	});

	$('.project').on('touchend', function(e){
		var t = $(this);
		t.removeClass('hover');
	});	
}