ホバーで透明化
$(‘.grid-item’).hover(function(){
$(this).find(‘img’).fadeTo(“200”,0.5); // マウスオーバーで透明度を30%にする
},function(){
$(this).find(‘img’).fadeTo(“200”,1.0); // マウスアウトで透明度を100%に戻す
});
Just another WordPress site
$(‘.grid-item’).hover(function(){
$(this).find(‘img’).fadeTo(“200”,0.5); // マウスオーバーで透明度を30%にする
},function(){
$(this).find(‘img’).fadeTo(“200”,1.0); // マウスアウトで透明度を100%に戻す
});