-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathinfinite.css
66 lines (62 loc) · 1.58 KB
/
infinite.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
/* Make the element pulse (grow large and small slowly) */
/* Usage
.myElement {
animation: pulsate 1s ease-out;
animation-iteration-count: infinite;
opacity: 1;
}
*/
@-webkit-keyframes pulsate {
0% {-webkit-transform: scale(0.1, 0.1); opacity: 0.0;}
50% {opacity: 1.0;}
100% {-webkit-transform: scale(1.2, 1.2); opacity: 0.0;}
}
/* Make the element's opacity pulse*/
/* Usage
.myElement {
animation: opacityPulse 1s ease-out;
animation-iteration-count: infinite;
opacity: 0;
}
*/
@-webkit-keyframes opacityPulse {
0% {opacity: 0.0;}
50% {opacity: 1.0;}
100% {opacity: 0.0;}
}
/* Make the element's background pulse. I call this alertPulse because it is red. You can call it something more generic. */
/* Usage
.myElement {
animation: alertPulse 1s ease-out;
animation-iteration-count: infinite;
opacity: 1;
}
*/
@-webkit-keyframes alertPulse {
0% {background-color: #9A2727; opacity: 1;}
50% {opacity: red; opacity: 0.75; }
100% {opacity: #9A2727; opacity: 1;}
}
/* Make the element rotate infinitely. */
/*
Usage
.myElement {
animation: rotating 3s linear infinite;
}
*/
@keyframes rotating {
from {
-ms-transform: rotate(0deg);
-moz-transform: rotate(0deg);
-webkit-transform: rotate(0deg);
-o-transform: rotate(0deg);
transform: rotate(0deg);
}
to {
-ms-transform: rotate(360deg);
-moz-transform: rotate(360deg);
-webkit-transform: rotate(360deg);
-o-transform: rotate(360deg);
transform: rotate(360deg);
}
}