-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfinal.css
166 lines (158 loc) · 3.82 KB
/
final.css
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
/* ==========================================
FINAL.CSS
These are the final styles for the project.
Course: CSS3 in 30 Days
Author: Brad Hussey
Website: codecollege.ca
========================================== */
/* =========================
PROGRESS BARS #1
========================= */
.final__animation-bar-1 {
position: relative;
display: block;
padding: 5px;
font-size: 16px;
line-height: 16px;
border-radius: 30px;
background: rgba(0, 0, 0, 0.1);
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25), 0 1px rgba(255, 255, 255, 0.08);
}
.final__animation-bar-1 span {
position: relative;
display: inline-block;
vertical-align: middle;
height: 20px;
border-radius: 10px 0 0 10px;
overflow: hidden;
background-color: #f56982;
background-size: 100%;
background-image: linear-gradient(to bottom, #f2395a, #b90c2b);
animation: progress-anim-1 10s infinite linear;
}
.final__animation-bar-1 span:after {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
content: "";
background-size: 100%;
background-image: linear-gradient(45deg, #ffffff 25%,
rgba(0, 0, 0, 0) 25%,
rgba(0, 0, 0, 0) 50%,
#ffffff 50%,
#ffffff 75%,
rgba(0, 0, 0, 0) 75%,
rgba(0, 0, 0, 0));
background-size: 30px 30px;
opacity: 0.3;
animation: progress-anim-1-after 0.5s infinite linear;
}
@-webkit-keyframes progress-anim-1 {
0% {
width: 20%;
}
50% {
width: 80%;
}
100% {
width: 20%;
}
}
@keyframes progress-anim-1 {
0% {
width: 20%;
}
50% {
width: 80%;
}
100% {
width: 20%;
}
}
@-webkit-keyframes progress-anim-1-after {
0% {
background-position: 0 100%;
}
100% {
background-position: 30px 100%;
}
}
@keyframes progress-anim-1-after {
0% {
background-position: 0 100%;
}
100% {
background-position: 30px 100%;
}
}
/* =========================
PROGRESS BARS #2
========================= */
.final__animation-bar-2 {
position: relative;
display: block;
font-size: 16px;
line-height: 16px;
background: rgba(0, 0, 0, 0.1);
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25), 0 1px rgba(255, 255, 255, 0.08);
}
.final__animation-bar-2 span {
position: relative;
display: inline-block;
vertical-align: middle;
height: 20px;
background-color: #00e6e7;
background-size: 100%;
background-image: linear-gradient(to bottom, #00b3b4, #008081);
animation: progress-anim-2 10s infinite ease;
}
.final__animation-bar-2 span:before {
position: absolute;
right: 0;
bottom: 100%;
display: inline-block;
width: 0;
height: 0;
border: 10px solid transparent;
border-right-width: 0;
border-bottom-width: 0;
border-top-color: rgba(0, 0, 0, 1);
content: "";
}
.final__animation-bar-2 span:after {
position: absolute;
right: 0;
bottom: calc(100% + 5px);
z-index: 1;
display: inline-block;
content: attr(data-label);
padding: 5px;
border-radius: 3px;
font-size: 0.8em;
background-color: rgba(0, 0, 0, 1);
color: #FFFFFF;
}
@-webkit-keyframes progress-anim-2 {
0% {
width: 20%;
}
50% {
width: 100%;
}
100% {
width: 20%;
}
}
@keyframes progress-anim-2 {
0% {
width: 20%;
}
50% {
width: 100%;
}
100% {
width: 20%;
}
}