javascript - Get a div to fade out on mouse hover of another div -
i'm trying .image img fade out when description-box hovered.
$(".description-box").on({ mouseover: function () { cleartimeout(timer); $(".image img").fadeout(); }, mouseout : function () { timer = settimeout(function () { $(".image img").fadein(); }, 100); } });
edit
something maybe... fiddle
$(".description-box").on({ mouseover: function () { timer = settimeout(function () { $(".image img").fadeout(); }, 100); }, mouseout: function () { cleartimeout(timer); $(".image img").fadein(); } });
Comments
Post a Comment