joeldbirch / superfish

Superfish is a jQuery plugin that adds usability enhancements to existing multi-level drop-down menus.
Other
912 stars 315 forks source link

Way to disable all delays and animations #171

Open ronilaukkarinen opened 7 years ago

ronilaukkarinen commented 7 years ago

Is there a way to disable all animations and delays? I guess it's intentional that hoverintent creates a slight mouseover delay on first element, although it's a bit annoying. If I set everything to zero, I still get some delays. Cannot set animations to false either in options. Any way possible to disable all animations so that menus would open instantly? with or without hoverIntent.

jquimera commented 6 years ago

change default speed and speedOut: normal/fast to 1 / 0

$(document).ready(function(){
$('ul.nav').superfish({
    speed: 1,
    speedOut: 0,
});
});
joeldbirch commented 5 years ago

Hmm, without hoverIntent and setting speed to 1 or 0 it should be pretty much instant.