con @keyframe conseguí la animacion pero al terminar el elmento dentro del div vuelva a su estado normal
y yo quiero que el cuadro se quede estirado
codigo
Código CSS :
.anima {
color: black;
width:50px;
height:50px;
background:red;
animation:cuadro 2s ease;
-moz-animation:myfirst 2s ease;
-webkit-animation:myfirst 2s ease;
-o-animation:myfirst 2s ease;
}
@keyframes cuadro
{
0% {width:10%;}
100% {width:50%;}
}
@-moz-keyframes cuadro
{
0% {width:10%;}
100% {width:50%;}
}
@-webkit-keyframes cuadro
{
0% {width:10%;}
100% {width:50%;}
}
@-o-keyframes cuadro
{
0% {width:10%;}
100% {width:50%;}
}
