[Resolved] Disable Superfish Menu Fade / Slide / Transition

Home Forums Support [Resolved] Disable Superfish Menu Fade / Slide / Transition

Home Forums Support Disable Superfish Menu Fade / Slide / Transition

Viewing 6 posts - 16 through 21 (of 21 total)
  • Author
    Posts
  • #255459
    Tom
    Lead Developer
    Lead Developer

    Hmm, try this:

    <script>
        jQuery( window ).load( function() {
            jQuery( '.sf-menu .menu-item-has-children' ).GenerateDropdownMenu.destroy();
            jQuery( '.sf-menu .menu-item-has-children' ).GenerateDropdownMenu({
                    transition_speed: 0,
    		open_delay: 0,
    		close_delay: 0
            });
        });
    </script>
    #255462
    Marcelo

    Genius! Thank You!

    #255466
    Tom
    Lead Developer
    Lead Developer

    You’re welcome ๐Ÿ™‚

    #441845
    Tom
    Lead Developer
    Lead Developer

    Just a heads up that this jQuery function has been removed in GP 2.0 (being released this week).

    The sub-menu uses CSS now, so it’s easier to adjust. Here’s an example: https://generatepress.com/forums/topic/disable-menu-animation-on-hover/#post-436051

    #444148
    Marcelo

    Thank you Tom!

    #444183
    Tom
    Lead Developer
    Lead Developer

    No problem! ๐Ÿ™‚

Viewing 6 posts - 16 through 21 (of 21 total)
  • You must be logged in to reply to this topic.