blob: d182707b4a77236a4c1ba056d0c54b0bb75f0e80 (
plain) (
blame)
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
|
body {
background-image: url("http://fay.io/w/space.jpg");
background-repeat: repeat;
background-position: top center;
}
.rotate-container-1 {
-webkit-animation: shrink 6s linear infinite,
fade 6s linear infinite;
animation: shrink 6s linear infinite,
fade 6s linear infinite;
}
.rotate-container-1 .rotate {
-webkit-animation: spin 6s linear infinite;
animation: spin 6s linear infinite;
}
.rotate-container-1 .rotate-object {
background: url("http://fay.io/w/doge.png") no-repeat;
background-size: 100%;
}
.rotate-container-2 {
-webkit-animation: shrink 6s linear infinite 2s,
fade 6s linear infinite 2s;
animation: shrink 6s linear infinite 2s,
fade 6s linear infinite 2s;
}
.rotate-container-2 .rotate {
-webkit-animation: spin 6s linear infinite 2s;
animation: spin 6s linear infinite 2s;
}
.rotate-container-2 .rotate-object {
background: url("http://fay.io/w/wrecking-ball(1).png") no-repeat;
background-size: 100%;
}
.rotate-container-3 {
-webkit-animation: shrink 6s linear infinite 4s,
fade 6s linear infinite 4s;
animation: shrink 6s linear infinite 4s,
fade 6s linear infinite 4s;
}
.rotate-container-3 .rotate {
-webkit-animation: spin 6s linear infinite 2s;
animation: spin 6s linear infinite 2s;
}
.rotate-container-3 .rotate-object {
background: url("http://fay.io/w/grumpy-cat.png") no-repeat;
background-size: 100%;
}
.rotate-container {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
width: 1em;
height: 1em;
margin: auto;
-webkit-backface-visibility: hidden;
-webkit-perspective: 1000;
}
.rotate {
position: absolute;
top: 50%;
left: 50%;
width: 1em;
height: 20em;
margin-left: -.5em;
-webkit-transform-origin: 50% 0;
transform-origin: 50% 0;
}
.rotate-object {
position: absolute;
bottom: 0;
left: 50%;
width: 5em;
height: 5em;
margin-left: -2.5em;
-webkit-animation: spin 20s linear infinite;
animation: spin 20s linear infinite;
}
@-webkit-keyframes spin {
from {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
to {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes spin {
from {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
to {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@-webkit-keyframes shrink {
from {
-webkit-transform: scale(3);
transform: scale(3);
}
to {
-webkit-transform: scale(0);
transform: scale(0);
}
}
@keyframes shrink {
from {
-webkit-transform: scale(3);
transform: scale(3);
}
to {
-webkit-transform: scale(0);
transform: scale(0);
}
}
@-webkit-keyframes fade {
0% {
opacity: 0;
}
5% {
opacity: 1;
}
80% {
opacity: 1;
}
100% {
opacity: 0;
}
}
@keyframes fade {
0% {
opacity: 0;
}
5% {
opacity: 1;
}
80% {
opacity: 1;
}
100% {
opacity: 0;
}
}
|