console
<div class="progress1"></div>
<br>
<div class="progress2"></div>
<div class="bg-grid black-theme animate-grid"></div>
<br>
<div class="fold-1">折角效果哦</div>
.black-theme{
background:#000;
}
.bg-grid{
margin-top: 20px;
width: 200px;
height: 200px;
background-image: linear-gradient(rgba(255,255,255,1) 2px,transparent 0),
linear-gradient(to right,rgba(255,255,255,1) 2px,transparent 0),
linear-gradient(rgba(255,255,255,.2) 1px,transparent 0),
linear-gradient(to right,rgba(255,255,255,.2) 1px,transparent 0);
background-position: -50px -50px;
background-size: 100px 100px,100px 100px, 100% 10px, 10px 100%;
}
.animate-grid{
animation: move-grid 6s linear infinite;
}
@keyframes move-grid{
0%{
background-position: -50px -50px;
}
30%{
background-position: -100px -100px;
}
60%{
background-position: -100px -150px;
}
100%{
background-position: -50px -50px;
}
}
.progress1{
width: 200px;
height: 20px;
background: linear-gradient(to right,#fb3 50%,#58a 0);
background-size: 40px 100%;
box-shadow: inset 0 0 3px #555;
}
.progress2{
width: 200px;
height: 20px;
background: linear-gradient(45deg,#fb3 25%,#58a 0,#58a 50%,#fb3 0,#fb3 75%,#58a 0);
background-size: 40px 40px;
}
.fold-1{
margin-left: auto;
margin-right: auto;
margin-bottom: 20px;
position: relative;
width: 200px;
height: 80px;
border-radius: .5em;
color: #fff;
line-height: 80px;
text-align: center;
background: linear-gradient(-150deg,transparent 1.5em, #58a 0);
}
.fold-1::before{
content: "";
position: absolute;
top: 0;
right: 0;
background: linear-gradient(to left bottom,transparent 50%,rgba(0,0,0,.2) 0,rgba(0,0,0,.4)) 100% 0 no-repeat;
width: 1.73em;
height: 3em;
transform: translateY(-1.3em) rotate(-30deg);
transform-origin: bottom right;
border-bottom-left-radius: inherit;
box-shadow: -.2em .2em .3em -.1em rgba(0,0,0,.15);
}