The limit of the animation is that I can't set the max-height as auto so I've set it to a value that it unlikley that the sub menu will ever reach.
Since the tranistion time is based on the max-height is is very fast so I've slowed it down to be a suitable speed but what I'd like is to have is disappear a lot faster when someone un-hovers or even have it disppear immediately. Is there a way to do this?
Expand|Select|Wrap|Line Numbers
- .menu ul ul{
- float: left;
- padding: 0;
- position: absolute;
- text-align: left;
- width: 274px;
- z-index: 1000;
- max-height: 0;
- overflow: hidden;
- -webkit-transition: max-height 1s ease-in;
- -moz-transition: max-height 1s ease-in;
- -o-transition: max-height 1s ease-in;
- -ms-transition: max-height 1s ease-in;
- transition: max-height 1s ease-in;
- }
- .menu ul li:hover ul, .menu li.over ul {
- max-height: 999px;
- }