[Resolved] delay menu dropdown

Home Forums Support [Resolved] delay menu dropdown

Home Forums Support delay menu dropdown

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #792398
    freeform1999

    Hi, I tried adding time to your menu dropdown delay but it’s not work for me..
    https://docs.generatepress.com/article/navigation-dropdown/

    As a test I put in Customizer>CSS:

    .main-navigation ul ul {
    transition: opacity 500ms linear;
    }

    .main-navigation ul ul:hover > ul {
    transition-delay: 5000ms;
    }

    The fade in works but not the delay.
    Thoughts?

    THX!!!!!!
    Rand

    #792460
    Leo
    Staff
    Customer Support

    Hi there,

    The selector of the second block of CSS isn’t the same as what we suggested here:
    https://docs.generatepress.com/article/navigation-dropdown/#dropdown-menu-transition

    Can you give that a shot?

    #792469
    freeform1999

    Thx Leo for reply!
    Sorry, I think what I wrote was just my last fix attempt.
    I just now put the orig. css in and still no go…
    Now I have:

    .main-navigation ul ul {
    transition: opacity 50ms linear;
    }

    .dropdown-hover .main-navigation ul li:hover > ul {
    transition-delay: 500ms;
    }

    Thx for any help.
    Rand

    #792483
    Tom
    Lead Developer
    Lead Developer

    Can you try the updated CSS here?: https://docs.generatepress.com/article/navigation-dropdown/#dropdown-menu-transition

    Let me know πŸ™‚

    #792508
    freeform1999

    Thx Tom!
    It still doesn’t seem to work.

    I put in:
    .main-navigation ul ul {
    transition: opacity 0ms linear;
    }

    .dropdown-hover .main-navigation ul li:hover > ul {
    transition-delay: 2000ms;
    }

    (I put 2000ms for testing. To be clear, I’m just trying to delay the dropdown a lil since I have a few buttons just below it on gallery post pages… and often over shoot them briefly which then the menu drops down instantly before my mouse can come down off of it…. like here: ../flickers/ )
    THX
    R

    #792514
    freeform1999

    (btw, no urgency on this one. πŸ™‚

    #792526
    Tom
    Lead Developer
    Lead Developer

    .main-navigation seems to be missing :not(.toggled) in your code. I updated the article to include it – you may need to hard refresh?

    Let me know πŸ™‚

    #792565
    freeform1999

    thx… that it now works!
    Well, except that if I roll over the menu ever so briefly it doesn’t show for the specified delay EVEN IF I rolled off it within the delay time.
    (The point is to avoid very brief rollovers. If this can’t be accomplished I’ll set the menu to drop on click.)
    thx as always
    R

    #792956
    Tom
    Lead Developer
    Lead Developer

    I think you’d need to use a javascript solution to achieve something like that, unfortunately.

    #792961
    freeform1999

    Ok.. thanks Tom!

    #792967
    Tom
    Lead Developer
    Lead Developer

    No problem πŸ™‚

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