このjqueryを使用して、ホバーしたときに別のdivの上にdivを表示していますが、何らかの理由で、fadeINとfadeOUTが機能しているように見えても機能しません。
私がfadeToをfadeIn
とにfadeOut
それぞれ変更した場合、前にカーソルを合わせたものが消えないので、それはそれを壊しますか?
$(function() {
$(".report-hover").hover(
function() {
$(this).children("img").fadeTo(200, 0.85).end().children(".report-image-hover").show();
},
function() {
$(this).children("img").fadeTo(200, 1).end().children(".report-image-hover").hide();
});
});
マークアップ:
<div class="report-hover">
<div class="report-image-hover">
<a href="#">
<img src="<?php bloginfo('template_url'); ?>/images/.....png" alt="Report" />
</a>
</div>
<img src="<?php bloginfo('template_url'); ?>/images/.....png" alt="Report" />
</div>