pxwee5 Posted October 23, 2015 Share Posted October 23, 2015 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 More sharing options...
NemoPS Posted October 24, 2015 Share Posted October 24, 2015 The superfish one should work, in which file did you change it? Link to comment Share on other sites More sharing options...
pxwee5 Posted October 24, 2015 Author Share Posted October 24, 2015 The superfish one should work, in which file did you change it? I tried both 1 and 2, and both is located in the superfish-modified.js It still takes about 100ms to open the menu when I hover. Link to comment Share on other sites More sharing options...
algspd Posted January 29, 2017 Share Posted January 29, 2017 (edited) I did exactly the same, but setting duration to 0: ul.show(0) It just worked. Edited January 29, 2017 by algspd (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now