この Web サイトから着想を得て: http://www.designchemical.com/lab/jquery/demo/jquery_demo_slick_jquery_sliding_captions.htm
以下のコードを使用して独自のバージョンを作成しました。
$(document).ready(function(){
$(".transparencyOverlay").css("display", "none");
$(".thumbnailTextContainer").css("display", "none");
$(".contestantFirst, .contestant").hover(function(){
$(this).children(".transparencyOverlay, .thumbnailTextContainer").slideToggle('slow');
},function(){
$(this).children(".transparencyOverlay, .thumbnailTextContainer").slideToggle('slow');
});
});
問題は、画像内で連続してホバーすると、カーソルが画像の外にある場合でもアニメーションが実行され続けることです。これを解決する方法を知っている人はいますか?