-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
141 lines (132 loc) · 4.57 KB
/
index.html
File metadata and controls
141 lines (132 loc) · 4.57 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
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>CSS Background Animation</title>
<style>
ul{list-style:none;}
li{float:left; margin:0 2% 0 0; width:10%;}
div.notification {
width: 70%;
height: 50px;
text-align: center;
box-sizing: border-box;
padding: 7px 0;
color: #fff;
border-radius: 28px;
}
.notification_success{background-color: #6a7168;
animation: colorChageSuccess 4s linear infinite;
-webkitanimation: colorChageSuccess 4s linear infinite;}
@-webkit-keyframes colorChageSuccess {
0% {
background-color: #6a7168;
}
50% {
background-color: #37bd08;
}
100% {
background-color: #6a7168;
}
}
@keyframes colorChageSuccess {
0% {
background-color: #6a7168;
}
50% {
background-color: #37bd08;
}
100% {
background-color: #6a7168;
}
}
.notification_alert{background-color: #ec2424;
animation: colorChageAlert 4s linear infinite;
-webkitanimation: colorChageAlert 4s linear infinite;}
@-webkit-keyframes colorChageAlert {
0% {
background-color: #ec2424;
}
50% {
background-color: #37bd08;
}
100% {
background-color: #ec2424;
}
}
@keyframes colorChageAlert {
0% {
background-color: #ec2424;
}
50% {
background-color: #37bd08;
}
100% {
background-color: #ec2424;
}
}
.notification_warning{background-color: #ccba04;
animation: colorChageWarning 4s linear infinite;
-webkitanimation: colorChageWarning 4s linear infinite;}
@-webkit-keyframes colorChageWarning {
0% {
background-color: #ccba04;
}
50% {
background-color: #37bd08;
}
100% {
background-color: #ccba04;
}
}
@keyframes colorChageWarning {
0% {
background-color: #ccba04;
}
50% {
background-color: #37bd08;
}
100% {
background-color: #ccba04;
}
}
.notification_info{background-color: #2ce4ff;
animation: colorChageInfo 4s linear infinite;
-webkitanimation: colorChageInfo 4s linear infinite;}
@-webkit-keyframes colorChageInfo {
0% {
background-color: #2ce4ff;
}
50% {
background-color: #37bd08;
}
100% {
background-color: #2ce4ff;
}
}
@keyframes colorChageInfo {
0% {
background-color: #2ce4ff;
}
50% {
background-color: #37bd08;
}
100% {
background-color: #2ce4ff;
}
}
</style>
</head>
<body>
<ul>
<li>
<div class="notification notification_success">12<br />Success</div></li>
<li>
<div class="notification notification_alert">15<br />Alerts</div></li>
<li>
<div class="notification notification_warning">12<br />Warnings</div></li>
<li>
<div class="notification notification_info">12<br />Infos</div></li>
</ul>
</body>
</html>