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

https://jsfiddle.net/pugu9vyy/

something maybe... fiddle

$(".description-box").on({ mouseover: function () {     timer = settimeout(function () {         $(".image img").fadeout();     }, 100); }, mouseout: function () { cleartimeout(timer);     $(".image img").fadein();  } }); 

Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -