I would like to activate the function .mouseoveronly if the mouse rests on the trigger element for a given duration (for example, 500 milliseconds).
eg.
$('.featured').mouseover(function () {
$('.feat-txt').fadeOut("fast");
});
Only if the mouse is positioned above the .featured element for at least 500 milliseconds, the function can start, and .feat-txt - FadeOut. A simple mouse (just a quick move) on this element does not activate the function.
Any suggestion on how to do this?
source
share