【发布时间】:2015-05-25 16:20:58
【问题描述】:
有没有办法让动画延迟不仅在开始时发生,而且在迭代之间发生?
假设你有这个例子:
.lv1 {
width: 200px;
height: 200px;
background: red;
animation: flu 1s infinite;
animation-delay: 2s;
}
.lv2 {
background: orange;
}
.lv3 {
background: yellow;
}
.lv2, .lv3 {
width: 70%;
height: 70%;
animation: inherit;
}
@keyframes flu {
0%, 100% { transform: rotate(0deg); }
50% { transform: rotate(90deg); }
}
<div class="lv1">
<div class="lv2">
<div class="lv3"></div>
</div>
</div>
【问题讨论】:
标签: css css-animations