シンプルなアニメーションを作成したいと思います。CSS3遷移[一時停止と速度の違い]
- 最初のステップ:0%から100%に1秒の速度でアニメーションを適用したいとします。
- 第2ステップ:2秒のポーズを作成します。
- 最終ステップ:divを0.5秒のスピードで左から右に動かしたいと思います。それが行うの最初のステップのために
.effect {
-webkit-animation:.effect 1s ease both;
animation:effect 1s ease both;
background-color:#1c1f26;
display:block;
height:100%;
left:0;
overflow:hidden;
position:absolute;
top:0;
width:100%;
}
@-webkit-keyframes effect {
0% {
-webkit-animation-timing-function:ease-in;
width:0%;
}
100% {
-webkit-animation-timing-function:ease-out;
width:100%;
}
}
<div class="effect"></div>
。 (私のコードでトップに見ることができます)
しかし、私は一時停止を作成し、次のステップのために異なる速度で再生することはできません。
ありがとうございました。