<div class="animation progressAnimation"></div>
//进度条
.animation {
position: absolute;
top: 0;
left: 0;
background-image: linear-gradient(to right, #ffffff01, #ffffff90);
height: 8px;
border-radius: 4px;
opacity: 0.7;
}
.progressAnimation {
animation: progressPercent 5s linear infinite;
}
@keyframes progressPercent {
0% {
width: 0;
}
100% {
width: 100%;
}
}