How to apply more than one transform with CSS3 animation ?
Here is my HTML code :
<div class="container">
<div class="cell"><span class="inner"></span><span class="inner"></span></div>
<div class="cell"><span class="inner"></span><span class="inner"></span></div>
<div class="cell"><span class="inner"></span><span class="inner"></span></div>
<div class="cell"><span class="inner"></span><span class="inner"></span></div>
<div class="cell"><span class="inner"></span><span class="inner"></span></div>
</div>
And my attempt :
@-webkit-keyframes firstanim{
from{
-webkit-transform:scale(1);
-webkit-transform:rotate(0deg);
backgroud:skyblue;
left:0px;
-webkit-transform: rotateY(0deg);
} to{
-webkit-transform:rotate(360deg);
-webkit-transform:scale(1.5);
background:orange;
left:100px;
-webkit-transform: rotateY(360deg);
}
}
.container{
border:1px solid black;
padding:20px;
width:250px;
height:50px;
position:realtive;
}
.cell{
width:25px;
height:25px;
background:skyblue;
float:left;
display:inline-block;
margin:0px 5px;
position:relative;
-webkit-animation: firstanim 3s infinite;
}
.inner{
width:100%;
height:50%;
float:left;
border:1px solid white;
border-left-width:0px;
borer-right-width:0px;
}
The result is located here.
Only one transform is being applied to the elements, even if I add more.