Jump to content

Top Menu - Sub Menu Appear Instantly


Recommended Posts

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. 

Link to comment
Share on other sites

  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...