Hello guys,
Is there a way to make the sub menu on the top menu appear instantly when hover?
I tried the following:
1. Changing the delay and speed settings in superfish-modified.js to 0.
$.fn.superfish.defaults = {
popUpSelector: 'ul,.sf-mega', // within menu context
hoverClass: 'sfHover',
pathClass: 'overrideThisToUse',
pathLevels: 1,
delay: 0,
animation: {opacity: 'show'},
animationOut: {opacity: 'hide'},
speed: 0,
speedOut: 0,
cssArrows: true,
disableHI: false,
onInit: $.noop,
onBeforeShow: $.noop,
onShow: $.noop,
onBeforeHide: $.noop,
onHide: $.noop,
onIdle: $.noop,
onDestroy: $.noop
};
2. Tried using jquery .show() function instead of the original one (in superfish-modified.js)
$ul.show();
/*$ul.stop(true, true).animate(o.animation, o.speed, function () {
o.onShow.call($ul);
});*/
The submenu appears at a decent speed but not instant.
Some help here really appreciated.