<div class='foo'></div>
<style>
.foo {
display: flex;
font-size: 10px;
align-items: center;
border-radius: 50%;
justify-content: center;
width: 30px;
height: 30px;
position: fixed;
color: #FFFFFF;
top: 30rpx;
left: 70%;
animation-name: slideDown;
animation-timing-function: ease-out;
animation-duration: 1500ms;
animation-iteration-count: infinite;
-moz-box-shadow: -5px -5px 10px 3px rgb(277, 102, 63) inset;
-webkit-box-shadow: -5px -5px 10px 3px rgb(277, 102, 63) inset;
box-shadow: -5px -5px 10px 3px rgb(277, 102, 63) inset;
}
@keyframes slideDown {
from {
transform: translateY(0);
}
50% {
transform: translateY(5px);
}
to {
transform: translateY(0);
}
}
.fooClear {
display: flex;
font-size: 10px;
align-items: center;
border-radius: 50%;
justify-content: center;
width: 30px;
height: 30px;
position: fixed;
color: #FFFFFF;
top: 30rpx;
left: 70%;
animation-name: slideDownTwo;
animation-timing-function: ease-out;
animation-duration: 1500ms;
-moz-box-shadow: -5px -5px 10px 3px rgb(277, 102, 63) inset;
-webkit-box-shadow: -5px -5px 10px 3px rgb(277, 102, 63) inset;
box-shadow: -5px -5px 10px 3px rgb(277, 102, 63) inset;
animation-iteration-count: 1;
animation-fill-mode: forwards;
-webkit-animation-duration: 1500ms;
-moz-animation-duration: 1500ms;
-o-animation-duration: 1500ms;
}
@keyframes slideDownTwo {
from {
transform: translateY(0);
opacity: 0.7;
}
50% {
opacity: 0.5;
}
to {
top:55rpx;
left:90rpx;
opacity: 0;
visibility: hidden;
width: 0px;
height: 0px;
}
}
</style>