I know it is a very idiot problem but i’m trying to make a div show and hide on mouseover but when mouse hover the div it only works one time, then the div fadeout and dont fade in again.
Am I missing something?
Thanks in advance
here it is in action: http://jsfiddle.net/rB9fk/3/
Fading out doesn’t just make an element invisible, it makes it not display at all. After
$(this).fadeOut('fast')executes, there is nodiv.backgroundHoverto hover over in the view.You should only fade out the same element you’re fading in:
Updated jsFiddle: http://jsfiddle.net/rB9fk/5/