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