-
Notifications
You must be signed in to change notification settings - Fork 94
Expand file tree
/
Copy pathprogressbar.css
More file actions
75 lines (66 loc) · 1.44 KB
/
progressbar.css
File metadata and controls
75 lines (66 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
.progressbar {
position: relative;
display: flex;
width: 100%;
height: 100%;
border-radius: 4px;
overflow: hidden;
}
.progressbar > :first-child {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
background: #217de0;
color: white;
}
.progressbar.yellow > :first-child {
background: #fab007;
}
.progressbar.red > :first-child {
background: #d84d4d;
}
.progressbar.green > :first-child {
background: #36a049;
}
.progressbar.dark-green > :first-child {
background: #0f6d20;
}
.progressbar.grey > :first-child {
background: #677274;
}
.progressbar > :last-child {
position: absolute;
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
left: 0;
top: 0;
background: white;
color: black;
/* clip-path: inset(0 0 0 50%); */
/* -webkit-clip-path: inset(0 0 0 50%); */
transition: clip-path 0.5s ease;
}
.progressbar.animate > :first-child {
background-image: linear-gradient(
45deg,
rgba(255, 255, 255, 0.15) 25%,
transparent 25%,
transparent 50%,
rgba(255, 255, 255, 0.15) 50%,
rgba(255, 255, 255, 0.15) 75%,
transparent 75%,
transparent
);
background-size: 1rem 1rem;
animation: 1s steps(20) infinite barberpole;
}
@keyframes barberpole {
0% {
background-position-x: 1rem;
}
}