I create a slide menu, the orange frame goes into the corner of the menu, a white box appears with an orange menu name.
The problem is that I use : hover
and hover over it, it will start and automatically go to the beginning of pos.
How to finish the animation?
http://jsfiddle.net/JudgeDredd/XWmme/1/
.smmo
{
width:195px;
height:45px;
background:#FF3300;
position:relative;
display:block;
}
.smmo:hover {
-webkit-animation-name:slideL ;
-webkit-animation-duration:1s;
}
@-webkit-keyframes slideL /* Safari and Chrome */
{
from {left:0px;}
to {left:200px;width:65px;}
}
source
share