Code
<ul id="nav">
<li><a href="/">Galvenā</a></li>
<li><a class="hsubs" href="/">menu 1</a>
<ul class="subs">
<li><a href="/">daļa 1</a></li>
<li><a href="/">daļa 2</a></li>
<li><a href="/">daļa 3</a></li>
<li><a href="/">daļa 4</a></li>
<li><a href="/">daļa 5</a></li>
</ul>
</li>
<li><a class="hsubs" href="/">menu 2</a>
<ul class="subs">
<li><a href="/">daļa 2-1</a></li>
<li><a href="/">daļa 2-2</a></li>
<li><a href="/">daļa 2-3</a></li>
<li><a href="/">daļa 2-4</a></li>
<li><a href="/">daļa 2-5</a></li>
<li><a href="/">daļa 2-6</a></li>
<li><a href="/">daļa 2-7</a></li>
<li><a href="/">daļa 2-8</a></li>
</ul>
</li>
<li><a class="hsubs" href="/">men 3</a>
<ul class="subs">
<li><a href="/">daļa 3-1</a></li>
<li><a href="/">daļa 3-2</a></li>
<li><a href="/">daļa 3-3</a></li>
<li><a href="/">daļa 3-4</a></li>
<li><a href="/">daļa 3-5</a></li>
</ul>
</li>
<li><a href="/">menu 4</a></li>
<li><a href="/">menu 5</a></li>
<li><a href="/">menu 6</a></li>
<li><a http://reflex.3dn.ru/" target="_blank">REFLEX.3DN.RU</a></li>
<div id="lavalamp"></div>
</ul>
CSS:
Code
-moz-transform: scaleY(0);
-ms-transform: scaleY(0);
-o-transform: scaleY(0);
-webkit-transform: scaleY(0);
transform: scaleY(0);
-moz-transform-origin: 0 0;
-ms-transform-origin: 0 0;
-o-transform-origin: 0 0;
-webkit-transform-origin: 0 0;
transform-origin: 0 0;
-moz-transition: -moz-transform 0.1s linear;
-ms-transition: -ms-transform 0.1s linear;
-o-transition: -o-transform 0.1s linear;
-webkit-transition: -webkit-transform 0.1s linear;
transition: transform 0.1s linear;
}
#nav li {
background: url('menu_line.png') no-repeat scroll right 5px transparent;
float: left;
position: relative;
}
#nav li a {
color: #FFFFFF;
display: block;
float: left;
font-weight: normal;
height: 30px;
padding: 23px 20px 0;
position: relative;
text-decoration: none;
text-shadow: 1px 1px 1px #000000;
}
#nav li:hover > a {
color: #00B4FF;
}
#nav li:hover, #nav a:focus, #nav a:hover, #nav a:active {
background: none repeat scroll 0 0 #121212;
outline: 0 none;
}
#nav li:hover ul.subs {
left: 0;
top: 53px;
width: 180px;
-moz-transform: scaleY(1);
-ms-transform: scaleY(1);
-o-transform: scaleY(1);
-webkit-transform: scaleY(1);
transform: scaleY(1);
}
#nav ul li {
background: none;
width: 100%;
}
#nav ul li a {
float: none;
}
#nav ul li:hover > a {
background-color: #121212;
color: #00B4FF;
}
#lavalamp {
background: url('lavalamp.png') no-repeat scroll 0 0 transparent;
height: 16px;
left: 19px;
position: absolute;
top: 0px;
width: 64px;
-moz-transition: all 300ms ease;
-ms-transition: all 300ms ease;
-o-transition: all 300ms ease;
-webkit-transition: all 300ms ease;
transition: all 300ms ease;
}
#lavalamp:hover {
-moz-transition-duration: 3000s;
-ms-transition-duration: 3000s;
-o-transition-duration: 3000s;
-webkit-transition-duration: 3000s;
transition-duration: 3000s;
}
#nav li:nth-child(1):hover ~ #lavalamp {
left: 19px;
}
#nav li:nth-child(2):hover ~ #lavalamp {
left: 103px;
}
#nav li:nth-child(3):hover ~ #lavalamp {
left: 185px;
}
#nav li:nth-child(4):hover ~ #lavalamp {
left: 267px;
}
#nav li:nth-child(5):hover ~ #lavalamp {
left: 348px;
}
#nav li:nth-child(6):hover ~ #lavalamp {
left: 429px;
}
#nav li:nth-child(7):hover ~ #lavalamp {
left: 510px;
}
#nav li:nth-child(8):hover ~ #lavalamp {
left: 616px;
}