http://wesbos.com/tf/shutterflow/?cat=3
画像にカーソルを合わせると、.cover がフェードインします。IE では CSS が機能しないため、jquery を使用して不透明度を変更します。
私のコードは次のとおりです。
$(document).ready(function () {
$('.slide').hover(function () {
$(".cover").animate({
opacity: 0.7
}, 300).fadeIn('300');
}, function () {
$(".cover").animate({
opacity: 0
}, 300).fadeOut('300');
});
});
フェードインを1秒待つのではなく、瞬時にしたい。何か案は?