HTML:
<header>
<div id="Menubar">
<a href="#Home"><div id="Home"><span>HOME</span></div></a>
<a href="#"><div id="Leistungen"><span>LEISTUNGEN</span></div></a>
<a href="#"><div id="Referenzen"><span>REFERENZEN</span></div></a>
<a href="#"><div id="Kontakt"><span>KONTAKT</span></div></a>
<div id="Pfeil" oncontextmenu="return false;"><span>></span></div>
</div>
</header>
CSS:
header {
height:270px;
width:100%;
background-color:#282828;
border-bottom:1px solid #000;
}
/* MENU */
#Menubar {
width:100%;
height:50px;
background-color:transparent;
position:absolute;
top:210px;
float:left;
}
#Home {
position:relative;
height:50px;
width:55px;
left:40px;
color:white;
font-size:130%;
float:left;
}
#Leistungen {
position:relative;
height:50px;
width:115px;
margin-left:80px;
color:white;
font-size:130%;
float:left;
}
#Referenzen {
position:relative;
height:50px;
width:120px;
margin-left:40px;
color:white;
font-size:130%;
float:left;
transition-property: margin-left;
transition-duration: 4s;
}
#Kontakt {
position:relative;
height:50px;
width:90px;
margin-left:40px;
color:white;
font-size:130%;
float:left;
}
#Pfeil {
position:relative;
height:50px;
width:90px;
margin-left:10px;
color:white;
font-size:130%;
float:left;
text-transform:
}
span {
position:relative;
top:12px;
}
#Home:hover {
color:#6FE6E6;
-webkit-animation-name:MenuAnimation;
-webkit-animation-duration:200ms;
-webkit-animation-delay:20ms;
-webkit-animation-timing-function:ease-in;
-webkit-animation-fill-mode:forwards;
border-bottom:1px solid white;
}
#Leistungen:hover {
color:#6FE6E6;
-webkit-animation-name:MenuAnimation;
-webkit-animation-duration:200ms;
-webkit-animation-delay:20ms;
-webkit-animation-timing-function:ease-in;
-webkit-animation-fill-mode:forwards;
border-bottom:1px solid white;
}
#Referenzen:hover {
color:#6FE6E6;
-webkit-animation-name:MenuAnimation;
-webkit-animation-duration:200ms;
-webkit-animation-delay:20ms;
-webkit-animation-timing-function:ease-in;
-webkit-animation-fill-mode:forwards;
border-bottom:1px solid white;
}
#Kontakt:hover { /* schießt pfeil nach rechts > */
color:#6FE6E6;
-webkit-animation-name:MenuAnimation;
-webkit-animation-duration:200ms;
-webkit-animation-delay:20ms;
-webkit-animation-timing-function:ease-in;
-webkit-animation-fill-mode:forwards;
border-bottom:1px solid white;
}
@-webkit-keyframes MenuAnimation {
0% {color:white;}
10% {color:#6FE6E6;}
100% {margin-right:35px; color:#6FE6E6;}
}
Probier mal das Menu durch und dann weißt du was ich meine, es springt zu schnell zurück
Zuletzt bearbeitet von einem Moderator: