61,111
社区成员
发帖
与我相关
我的任务
分享
<div class="progress">
<div class="progressInner"><span>14%</span></div>
</div>
.progress{background: #eae9e6;border-radius: 0.2rem;width: 100%;height: 0.34rem;box-shadow: 0 2px 0 #b5b2b0;margin-bottom: 0.4rem;position: relative;}
.progressInner{position: absolute;left: 0.03rem;top:0.04rem;height: 0.29rem;width: 50%;background-image:linear-gradient(-60deg,transparent 0rem,transparent 0.2rem,#feac1a 0.2rem,#feac1a 0.3rem,transparent 0.3rem,transparent 0.4rem);background-size:0.3rem 0.4rem;background-color:#feb31c;border-radius: 0.2rem; -webkit-animation: process 800ms infinite linear;
animation: process 800ms infinite linear;box-shadow: 0 1px 0 #cc8504;line-height: 0.29rem;color: #fff;text-shadow: 1px 1px 0 #fd7703;text-align: center;}
@-webkit-keyframes process {
0% { background-position: 0 0; }
100% { background-position: 20px 0; }
}
@keyframes process {
0% { background-position: 0 0; }
100% { background-position: 20px 0; }
}