一度に1 つずつ拡大縮小したい html ファイルに 3 つの画像があります。これらの遅延を配置しようとしました:-moz-animation-delay: -2s;
とanimation-delay:2s;
ID 内#animation-container2
と#animation-container3
. すべての画像が同時にスケーリングされます。私は間違って何をしていますか?
html
<div id="splashPage">
<ul>
<li> <img src="images/vintage.png" alt="Vintage" id="animation-container"> <li>
<li> <img src="images/computers.png" alt="Computer" id="animation-container2"> <li>
<li> <img src="images/online.png" alt="Online" id="animation-container3" > <li>
</ul>
<img src="images/enter.gif" alt="enter" id="enterClick">
</div>
CSS:
#animation-container {
animation: inout 2s;
animation-iteration-count: 1;
-webkit-animation: inout 3s; /* Safari & Chrome */
margin: auto;
}
@keyframes inout {
25% { transform: scale(2, 2); }
}
#animation-container2 {
-moz-animation-delay: 5s;
animation: inout 2s;
animation-iteration-count: 1;
-webkit-animation: inout 3s; /* Safari & Chrome */
margin: auto;
}
@keyframes inout {
25% { transform: scale(2, 2); }
}
#animation-container3 {
-moz-animation-delay: 10s;
animation: inout 2s;
animation-iteration-count: 1;
-webkit-animation: inout 3s; /* Safari & Chrome */
margin: auto;
}
@keyframes inout {
25% { transform: scale(2, 2); }
}