-
Notifications
You must be signed in to change notification settings - Fork 0
/
orbit.css
125 lines (108 loc) · 2.44 KB
/
orbit.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
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
.orbit {
position: relative;
min-height: 720px;
}
.orbit__ring {
top: 360px;
left: 50%;
border: 2px solid #f0f2f5;
border-radius: 50%;
box-sizing: border-box;
position: absolute;
transition: all 1s ease;
}
.orbit__ring--inner {
width: 320px;
height: 320px;
margin: -160px;
}
.orbit__ring--outer {
width: 520px;
height: 520px;
margin: -260px;
}
.orbit__ring--external {
border-color: rgba(240,242,245,.7);
width: 720px;
height: 720px;
margin: -360px;
}
.orbit__sun {
width: 120px;
height: 120px;
margin: -85px;
top: 360px;
left: 50%;
position: absolute;
transition: all 1s ease;
border-radius: 50%;
filter: drop-shadow(0 5px 7px rgba(0,0,0,.3));
}
.orbit__star {
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-fill-mode: forwards;
transform: translateZ(0);
perspective: 1000px;
width: 68px;
height: 68px;
margin: -100px -80px;
top: 360px;
left: 50%;
backface-visibility: hidden;
will-change: transform;
position: absolute;
transition: all 1s ease;
}
.orbit__star--rotate-inner {
-webkit-animation-name: rotateInner;
-webkit-animation-duration: 117s;
animation-name: rotateInner;
animation-duration: 117s;
}
.orbit__star--rotate-outer {
-webkit-animation-name: rotateOuter;
-webkit-animation-duration: 117s;
animation-name: rotateOuter;
animation-duration: 117s;
}
.orbit__star-name1 {
-webkit-animation-delay: -50s;
animation-delay: -50s;
}
.orbit__star-name2 {
-webkit-animation-delay: -120s;
animation-delay: -120s;
}
.orbit__star-name3 {
-webkit-animation-delay: -70s;
animation-delay: -70s;
}
.orbit__star-name4 {
-webkit-animation-delay: -100.8s;
animation-delay: -100.8s;
}
.orbit__star-name5 {
-webkit-animation-delay: -143s;
animation-delay: -143s;
}
@keyframes rotateInner {
0% {
-webkit-transform: rotate(0deg) translate3d(160px,0,0) rotate(0deg);
transform: rotate(0deg) translate3d(160px,0,0) rotate(0deg);
}
100% {
-webkit-transform: rotate(1turn) translate3d(160px,0,0) rotate(-1turn);
transform: rotate(1turn) translate3d(160px,0,0) rotate(-1turn);
}
}
@keyframes rotateOuter {
0% {
-webkit-transform: rotate(0deg) translate3d(260px,0,0) rotate(0deg);
transform: rotate(0deg) translate3d(260px,0,0) rotate(0deg);
}
100% {
-webkit-transform: rotate(1turn) translate3d(260px,0,0) rotate(-1turn);
transform: rotate(1turn) translate3d(260px,0,0) rotate(-1turn);
}
}