The hoverintent plugin is the opposite of what I need. I have a .popup that starts with .trigger when I am away from it, I want .popup to NOT fade out for a few seconds, but if I sag, then hover again, cancel the fading that should happen and don't open. popup.
Does anyone know how I will do this?
This does NOT work, but it was an idea:
$('.trigger').hover(function(){
$('.popup').fadeIn(600)
}, function() {
$('.popup').delay(2000, function(){
if ($(this).blur() = true) {
$('.popup').fadeOut(600)
}
});
})
source
share