[Resolved] Submenu disappears too quickly

Home Forums Support [Resolved] Submenu disappears too quickly

Home Forums Support Submenu disappears too quickly

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #486450
    Re

    I am using the mega menu styling technique I found in the Generate Press knowledge base to create a full-width 4-column menu on my site. The problem is that when the user’s mouse leaves the parent navigation item diagonally, to get to the first column menu items, the menu disappears too quickly. Is there any way to increase the exit delay of the sub navigation menus?

    #486643
    Tom
    Lead Developer
    Lead Developer

    Since the navigation uses pure CSS now instead of javascript, I’m not sure if it’s possible to set a delay.

    I’ll do some digging today and will get back to you.

    #486652
    Tom
    Lead Developer
    Lead Developer

    Just played with a for a second, maybe try this:

    .main-navigation ul ul {
        transition-delay: 300ms;
        height: auto;
    }
    #486723
    Re

    Brilliant! This works perfectly. Thanks Tom!

    #486912
    Tom
    Lead Developer
    Lead Developer

    You’re welcome 🙂

    #1381579
    Jessica

    Hi, i have the same problem at http://wp12076150.server-he.de/

    Adding following code doesn´t work:

    .main-navigation ul ul {
    transition-delay: 300ms;
    height: auto;
    }

    What did i wrong?

    Thanks for help!

    #1381628
    David
    Staff
    Customer Support

    Hi there,

    the issue arises because you’re using this CSS to add top margin to the menu:

    .main-navigation ul {
        margin-top: 22px !important;
    }

    Margins create a space between elements, so the mouse loses hover focus as you cross the gap.

    Remove that CSS and try this instead:

    .main-navigation .main-nav ul li.menu-item-has-children > a {
        padding-bottom: 22px;
    }
    #1381674
    Jessica

    Thanks for the fast help!

    Now the submenu works, but the position of Main Nav and Submenu are wrong
    So it should be

    You understand my problem?

    #1381809
    David
    Staff
    Customer Support

    The URL you have provided is timing out ?

    #1381993
    Jessica
    #1382009
    David
    Staff
    Customer Support

    What about this:

    .main-navigation .main-nav ul li.menu-item-has-children > a {
        padding-bottom: 22px;
        padding-top: 22px;
        margin-top: 22px;
    }
    #1382085
    Jessica

    thanks, the space between first entry is a little bit to big, but think i can use this. 🙂

    #1382653
    David
    Staff
    Customer Support

    Glad to be of help

Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.