Site logo

Archived topic

Make Menu appear when hover on something

8 replies · Started by liorsade8 on December 28, 2020

Viewing posts 1–9 of 9

Hi
is it possible to make a menu been shown while in hover on an item
example:
https://www.boh.co.il/en

make the menu appear when in hover with mice on something / on MENU / on HAMBURGER
thanks

i see that in the example site - the menu appear when mouse is hovering the header / navigation...

Hi there,

that would require Custom Development - but if you want to provide a link to your current site i will take a look and provide you some pointers.

This would be the basic CSS to do that:

/* Set transition for hover */
#site-navigation {
    transition: all 0.2s;
}
/* When nav is NOT hovered set background to transparent */
#site-navigation:not(:hover) {
    background: transparent;
    transition: background 0.2s;
}
/* When nav ig NOT hovered set hidden menu items to transparent */
#site-navigation:not(:hover) li.hidden a {
    color: transparent;
}

Now you just need to give each Menu item that you want Hidden ( when its not hovered ) a CSS Class of hidden

This article explains how to add classes to menu items.

hi
sorry but how do i do this:

Now you just need to give each Menu item that you want Hidden ( when its not hovered ) a CSS Class of hidden

thanks

hi
i know how to give CSS class, but i dont know the line of code for making it hidden.
could u please help?
thanks

This archived topic is closed to new replies.