I am asking a specific question about a specific problem that I don't know how to do but would like to add to my site.
1) When the parent li has a child, I want that nav to stayed hovered with the effect applied when going through the child elements. Right now, when I am no longer hovered over it, it will lose its hover effect and apply hover effects on the child elements when I want the parent li to still have the hovered effect when going through the sub navigation.
2)And the other thing I do not know how to do is transition effect when I hover over any navigation links, it will sort of have an fade in out effect when hovered in and out from. How do I do this?
I attempted to do this:
CSS:
#nav li:hover > ul{ /*display sub menus when hovered over*/
left:0; /*show menu when hovered*/
z-index:100; /*places the sub nav in frontier of all elements*/
transition: all 2.4s ease-in-out -2s; /*transition: property duration timing-function delay;*/
-moz-transition: all 2.4s ease-in-out -2s;
-webkit-transition: all 2.4s ease-in-out -2s;
}
It brought about unexpected, but cool results of bringing out the submenus, sliding to the right. It's not what I intended, but okay. I just wanted the other two features applied but don't where to look. My full code is here: jsfiddle nav code