-
Notifications
You must be signed in to change notification settings - Fork 1
/
style.css
65 lines (56 loc) · 1.29 KB
/
style.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
.loader {
display: flex;
justify-content: center;
}
.svg-frame {
position: relative;
width: 300px;
height: 300px;
transform-style: preserve-3d;
display: flex;
justify-content: center;
align-items: center;
}
.svg-frame svg {
position: absolute;
transition: .5s;
z-index: calc(1 - (0.2 * var(--j)));
transform-origin: center;
width: 344px;
height: 344px;
fill: none;
}
.svg-frame:hover svg {
transform: rotate(-80deg) skew(30deg) translateX(calc(45px * var(--i))) translateY(calc(-35px * var(--i)));
}
.svg-frame svg #center {
transition: .5s;
transform-origin: center;
}
.svg-frame:hover svg #center {
transform: rotate(-30deg) translateX(45px) translateY(-3px);
}
#out2 {
animation: rotate16 7s ease-in-out infinite alternate;
transform-origin: center;
}
#out3 {
animation: rotate16 3s ease-in-out infinite alternate;
transform-origin: center;
stroke: #ff0;
}
#inner3,
#inner1 {
animation: rotate16 4s ease-in-out infinite alternate;
transform-origin: center;
}
#center1 {
fill: #ff0;
animation: rotate16 2s ease-in-out infinite alternate;
transform-origin: center;
}
@keyframes rotate16 {
to {
transform: rotate(360deg);
}
}