Site logo

[Resolved] Drop Down Menu Transition

Home Forums Support [Resolved] Drop Down Menu Transition

Home Forums Support Drop Down Menu Transition

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #2590935
    Paul

    I would like to have exact same menu drop-down animation and arrow on right on hover for my website in desktop mode.

    like this website

    any help will be appreciated.

    #2591090
    Ying
    Staff
    Customer Support

    Hi Paul,

    Can you try this CSS in your media query?

    .main-navigation ul ul {
        float: none;
        height: auto;
        width: 0;
        left: -50px;
    }
    
    .main-navigation:not(.toggled) ul li.sfHover>ul, .main-navigation:not(.toggled) ul li:hover>ul {
        width: 240px;
        transition: all 0.5s ease;
    }
    #2591102
    Paul

    thanks, that’s working fine, now how can I add a right arrow on each drop-down item on hover same as the above website?

    #2591191
    Ying
    Staff
    Customer Support

    What arrow? I’m not seeing one.

    Can you take a screenshot of what you are referring to?

    #2591264
    Paul

    Like this

    This arrow will appear on hover of the particular item.

    #2591363
    Ying
    Staff
    Customer Support

    Oh I see, do you also have the font awesome plugin installed?

    #2591379
    Paul

    not yet, can you please guide me on that?

    #2591894
    David
    Staff
    Customer Support

    Hi there,

    try adding this CSS:

    .main-navigation .main-nav ul ul li a:after {
        content: '→';
        display: inline-block;
        margin-left: 10px;
        opacity: 0;
        transform: translateX(-100%); 
    
    }
    .main-navigation .main-nav ul ul li:hover a:after {
        opacity: 1;
        transform: translateX(0);
        transition: all 0.2s ease;
    }
    #2591924
    Paul

    That was easy, thank you.

    #2591987
    David
    Staff
    Customer Support

    Glad to be of help!

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