画像のホバー時にオーバーレイでフェードインする単純なjquery関数があります。
if($(".portfolioThumbs").length>0){
$(".magnify").css("opacity","0");
$(".magnify").hover(function(){$(this).stop().animate({opacity:1},"slow")},function() {$(this).stop().animate({opacity:0},"slow")}
)};
これと同じ効果をモバイルで動作させるにはどうすればよいですか? 「touchstart」と「touchend」を使用できる場所を読みました-それが正しい場合、どうすればそれをこの関数に組み合わせることができますか?
ありがとう!