【发布时间】:2014-10-07 18:09:17
【问题描述】:
我正在使用 css 动画将圆形 <div> 无限旋转 360 度。
每次旋转后,我希望在下一次旋转之前暂停或延迟 5 秒。
我怎样才能实现它?
代码如下。
CSS
.circle{
position: absolute;
top: 4;
right: 4;
height: 21px;
width: 21px;
border-radius: 50%;
background: #00B5F9;
color: white;
font-family: varela round;
font-size: 11;
font-weight: 500;
border: 1px solid white;
-webkit-animation-name: lol;
-webkit-animation-duration: 1s;
-webkit-animation-timing-function: ease-in-out;
-webkit-animation-iteration-count: infinite;
-webkit-animation-delay: 1s
}
@-webkit-keyframes lol {
0% { -webkit-transform:rotate(0deg) }
100% { -webkit-transform:rotate(360deg) }
}
HTML
<div class="circle">56</div>
【问题讨论】:
-
这个 QA 比引用的要干净得多。