效果图:
代码:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.float_animate{
display: inline-block;
animation: bounce 0.6s infinite alternate;
transform-origin: center bottom;
transform: translate3d(0, 0, 0);
}
@keyframes bounce {
0% {
transform: translate3d(0, 0, 0);
}
100% {
transform: translate3d(0, -0.6em, 0);
}
}
</style>
</head>
<body>
<div style="height:200px;"></div>
<div>
<div class="float_animate" style="animation-delay: 0s;">1</div>
<div class="float_animate" style="animation-delay: 0.0833333333s;">2</div>
<div class="float_animate" style="animation-delay: 0.1666666667s;">3</div>
<div class="float_animate" style="animation-delay: 0.3333333333s;">4</div>
<div class="float_animate" style="animation-delay: 0.4166666667s;">5</div>
<div class="float_animate" style="animation-delay: 0.4966666667s;">6</div>
<div class="float_animate" style="animation-delay: 0.65s;">7</div>
</div>
</body>
</html>