ページには、このような複数の要素があります
<h1 class="bodyText hide">1</h1>
<h1 class="bodyText hide">2</h1>
<h1 class="bodyText hide">3</h1>
と
.hide{
display:none;
}
.bodyText {
}
これで、マウスがbodyText要素に入ると、マウスが要素を離れるときにテキストがフェードインおよびフェードアウトするはずです。私が試したこと:
$('.bodyText').on('mouseover', function(event){
$(this).fadeIn();
});
$('.bodyText').on('mouseout', function(event){
$(this).fadeOut();
});
これはまったく何もしません。これを行う方法はありますか?
このような効果を実現したい:http ://www.google.com/intl/de/about/datacenters/gallery/index.html#/