//Fade in and out animation on hove buttons - icon set, features.
$(window).load(function() {
$("ul#features_icons li img").hover(function() {
$(this).next("span").animate({ opacity: "show" }, "fast");
}, function() {
$(this).next("span").animate({opacity: "hide"}, "fast");
});
});
スパンの内容がdisplay:noneになるホバーオンエフェクトを実現しようとしていますが、ホバーするとすぐにdisplay:blockになります。css を使用して、負のマージンを使用して画像の上に配置することができましたが、問題は、このスパンを画像に対して中央に配置することです。
何か案は?
cssではできません。だから、jqueryの何かである必要がありますか?
ありがとう!