Maison > Questions et réponses > le corps du texte
http://www.xiaomantou.net/
怪我咯2017-04-10 17:11:33
http://runjs.cn/detail/qkpuuef7
珍藏多年的代码。
<!-- HTML-->
<p class="spinner5">
<p class="bounce1"></p>
<p class="bounce2"></p>
<p class="bounce3"></p>
</p>
// CSS3
.spinner5 {
width: 100px;
text-align: center;
}
.spinner5 > p {
width: 20px;
height: 20px;
background-color: #67CF22;
border-radius: 100%;
display: inline-block;
-webkit-animation: bouncedelay 1.4s infinite ease-in-out;
animation: bouncedelay 1.4s infinite ease-in-out;
/* Prevent first frame from flickering when animation starts */
-webkit-animation-fill-mode: both;
animation-fill-mode: both;
}
.spinner5 .bounce1 {
-webkit-animation-delay: -0.32s;
animation-delay: -0.32s;
}
.spinner5 .bounce2 {
-webkit-animation-delay: -0.16s;
animation-delay: -0.16s;
}
@-webkit-keyframes bouncedelay {
0%, 80%, 100% { -webkit-transform: scale(0.0) }
40% { -webkit-transform: scale(1.0) }
}
@keyframes bouncedelay {
0%, 80%, 100% {
transform: scale(0.0);
-webkit-transform: scale(0.0);
} 40% {
transform: scale(1.0);
-webkit-transform: scale(1.0);
}
}