-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprogressbar.css
More file actions
94 lines (81 loc) · 1.32 KB
/
Copy pathprogressbar.css
File metadata and controls
94 lines (81 loc) · 1.32 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
body{
margin: 0;
padding: 0%;
background: pink;
}
.wrap{
width: 800px;
margin: 0 auto;
}
.wrap h1{
text-align: center;
text-transform: uppercase;
margin-top: 40px;
}
.wrap h2{
text-align: left;
}
.line{
height: 25px;
min-width: 800px;
margin: 0 auto 10px;
line-height: 25px;
font-size: 14px;
color: #fff;
padding: 0 0 0 10px;
position: relative;
}
.line:before {
content: '';
width: 100%;
position: absolute;
left: 0;
height: 25px;
top: 0;
z-index: -2;
background: #ccc;
}
.line:after{
content: '';
background: #333;
height: 25px;
transition: 0.8s;
display: block;
animation: animate 1 4s;
width: 100%;
position: absolute;
top: 0;
left: 0;
z-index: -1;
}
.line1:after{
max-width: 80%;
}
.line2:after{
max-width: 40%;
}
.line3:after{
max-width: 60%;
}
.line4:after{
max-width: 95%;
}
@keyframes animate{
0% {
width: 0%;
}
}
#myProgress {
width: 100%;
background-color: grey;
}
#myBar {
width: 50%;
height: 30px;
background-color: #4CAF50;
text-align: center; /* To center it horizontally (if you want) */
line-height: 30px; /* To center it vertically */
color: white;
animation: animate 1 3s;
padding: 0 0 0 10px;
}