0
我看看CSS3關鍵幀,並希望有一個框緩解,然後簡化了指定的迭代計數,這是我迄今爲止它緩解然後消失,然後再次緩解。 我希望盒子能夠緩解,然後緩解。 See my fiddle。我需要做些什麼才能做到這一點?CSS3關鍵幀易化盒,然後緩解
<div id="content">
<span class="aniamte"></span>
</div>
@keyframes reset {
0% { opacity: 0; }
100% { opacity: 0; }
}
@keyframes fade-in {
0% { opacity: 0; }
60% { opacity: 0; }
100% { opacity: 1; }
}
.aniamte {
background: red;
display: inline-block;
height: 100px;
width: 100px;
animation-name: reset, fade-in;
animation-duration: 3s;
animation-timing-function: ease-in-out;
animation-iteration-count: 5;
animation-delay: 0, 1s;
}