4
I have a div
, which is lively, and would not like that at the end of the animation she turns to the state of when she started, because she ends up returning to the original state at the end of the animation.
#div1 {
height:100px;
width:100px;
background-color:silver;
position:relative;
animation-name:animacao;
animation-duration:3s;
animation-iteration-count:1;
animation-delay:0.5s;
}
@keyframes animacao {
from {
left:0px
}
to {
left:100px
}
}
<div id="div1"></div>
jsfiddle: http://jsfiddle.net/fauqk0e5/
The fiddle does no animation, apart from presenting the square..
– CesarMiguel
@Cesarmiguel Your browser must not support these properties without a prefix. Try http://jsfiddle.net/zb4rfgkk/ in Chrome.
– bfavaretto
@exact bfavaretto, missing prefixes
– CesarMiguel
@Guilherme Beat me by 5s :)
– bfavaretto
@bfavaretto Seriously? It was cowboy luck, you’re still the fastest west kkkk
– Guilherme Nascimento