Site logo

[Resolved] Exit animation in drop downs submenu

Home Forums Support [Resolved] Exit animation in drop downs submenu

Home Forums Support Exit animation in drop downs submenu

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2416899
    Diogenes

    Hi.

    I have seen this post that David answers: https://generatepress.com/forums/topic/menu-animation-feature/

    I have applied this code and it works perfect:

    #site-navigation ul ul {
        transform: translatey(6px); 
        transition: 0.15s ease-in;
    }
    
    #site-navigation ul li:hover ul {
        transform: translateY(0px); 
            transition: 0.15s ease-in;
    }
    
    #site-navigation:not(.toggled) ul ul {
    	transition: opacity 0.35s linear;
    }

    It would be possible to apply the same style of the entrance animation (it appears faded from the bottom to the top), to the exit animation, but in the opposite, that is, when the mouse is removed it fades from the top to the bottom, as shown in the example page: https://www.herbertwoods.co.uk

    I would greatly appreciate the help.
    Greetings.

    #2417027
    Ying
    Staff
    Customer Support

    Can you link us to your site?

    #2417051
    Diogenes

    Thanks for the reply.
    In the private information is the website,

    #2417128
    Ying
    Staff
    Customer Support

    Try change this CSS:

    .main-navigation ul ul {
        transform: translatey(16px);
        transition: 0.15s ease-in;
    }

    to this:

    .main-navigation ul ul {
        transform: translatey(16px);
        transition: all 0.35s ease !important;
        left: 0;
        height: auto;
    }
    #2417215
    Diogenes

    I look spectacular 🤩
    Thank you

    #2417285
    Ying
    Staff
    Customer Support

    No problem 🙂

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