simpl1k,
вариант с задержкой и сменой фона
<!DOCTYPE HTML>
<html>
<head>
<title>Untitled</title>
<meta charset="utf-8">
<style type="text/css">
.menu {
width: 400px;
list-style-type: none;
}
.toplevel {
display: block;
padding: 0 10px;
line-height: 2;
color: #fff;
text-decoration: none;
background: #f00;
-webkit-transition: all 1.2s ease-in-out .3s;
-moz-transition: all 1.2s ease-in-out .3s;
-o-transition: all 1.2s ease-in-out .3s;
transition: all 1.2s ease-in-out .3s;
}
.dropdown > a.another-color {
background: #eeeeee;
}
.dropdown {
position: relative;
z-index: 200;
float: left;
width: 200px;
}
.submenu {
position: absolute;
top: 0;
left: 0;
height: 0;
width: 200px;
list-style-type: none;
padding-top: 2em;
z-index: 200;
overflow: hidden;
-webkit-transition: all .8s ease-in-out .3s;
-moz-transition: all .8s ease-in-out .3s;
-o-transition: all .8s ease-in-out .3s;
transition: all .8s ease-in-out .3s;
}
.dropdown:hover .submenu {
height: 8em;
}
.dropdown:hover a.toplevel{
background-color: #FF00FF;
-webkit-transition-delay: 0;
-moz-transition-delay: 0;
-o-transition-delay: 0;
transition-delay: 0;
}
.submenu a {
display: block;
padding: 5px;
color: #fff;
text-decoration: none;
background: navy;
}
ul{
margin: 0;
padding: 0;
}
</style>
</head>
<body> <script>
</script>
<ul class="menu">
<li class="dropdown">
<a href="#" class="toplevel">menu</a>
<ul class="submenu">
<li><a href="#">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#">4</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="toplevel">menu2</a>
<ul class="submenu">
<li><a href="#">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#">4t</a></li>
</ul>
</li>
</ul>
</body>
</html>