我试图实现其他解决方案,但没有运气...希望有人可以帮助解决我的悬停延迟问题...我只需要添加一个短暂的延迟时间。如何在鼠标移出时添加延迟
在此先感谢!
$('.forward').css({opacity:0, right:0});
$('.hover-area').hover(function() {
$(this).find('.forward').stop()
.animate({right:20}, {queue:false, duration:300, easing:'easeOutCubic'})
.animate({opacity:'0.95'}, {queue:false, duration:400, easing:'easeOutCubic'});
},function() {
$(this).find('.forward').stop()
.animate({right:0}, {queue:false, duration:550, easing:'easeOutSine'})
.animate({opacity:'0'}, {queue:false, duration:300, easing:'easeOutSine'});
});
你看过hoverintent吗? –
谢谢你的抬头。我确实看了一眼......它也可以工作,但我希望没有额外的插件就可以做到。我相信我会最终迁移到它......像许多开发人员正在使用它的接缝 – Taylor
仍然没有解决方案...看起来我会比我更早使用hoverintent – Taylor