-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
145 lines (142 loc) · 2.89 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
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
* {
box-sizing: border-box;
}
body {
width: 100%;
height: 100vh;
overflow: hidden;
background: url("pexels-francesco-ungaro-998641.jpg");
background-size: cover;
background-position: center;
display: flex;
justify-content: center;
align-items: center;
z-index: -2;
}
body::after {
content: "";
position: absolute;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.6);
z-index: -2;
}
.container {
width: 40vw;
height: 39vw;
border-radius: 50%;
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
background: white;
position: relative;
z-index: 1;
}
.earth {
background: url("flat_earth03.jpg");
background-size: contain;
background-repeat: repeat-x;
height: 105%;
width: 1000000vw;
position: absolute;
animation: rotate 100000s linear infinite alternate;
z-index: 1;
box-shadow: inset 280px 0 100px rgba(0, 0, 0, 0.5);
}
.moon {
width: 5vw;
height: 5vw;
border-radius: 50%;
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
background: white;
position: absolute;
animation: circle 15s linear infinite;
right: 10%;
top: 30%;
perspective: 1000px;
transform-style: preserve-3d;
}
.texture {
background: url("lroc_color_poles_1k.jpg");
background-size: contain;
background-repeat: repeat-x;
height: 100%;
width: 1000000vw;
position: absolute;
animation: rotate 159000s linear infinite alternate;
box-shadow: inset 40px 0 40px rgba(250, 250, 250, 0.05);
}
@keyframes rotate {
from {
transform: rotateZ(10deg);
background-position: 0;
}
to {
transform: rotateZ(10deg);
background-position: 100%;
}
}
@media (min-width: 768px) {
@keyframes circle {
0% {
transform: translateX(0);
z-index: 3;
}
25% {
transform: scale(2) translateX(-20vw) translateY(90px);
}
50% {
transform: scale(1) translateX(-80vw) translateY(200px);
}
75% {
z-index: -1;
transform: scale(0.4) translateX(-60vw) translateY(30px);
}
100% {
transform: translateX(0);
}
}
}
@media (max-width: 768px) {
.moon {
top: 50%;
}
@keyframes circle {
0% {
transform: translateX(0);
z-index: 3;
}
25% {
transform: scale(2) translateX(-20vw) translateY(9px);
}
50% {
transform: scale(1) translateX(-80vw) translateY(20px);
}
75% {
z-index: -1;
transform: scale(0.4) translateX(-60vw) translateY(3px);
}
100% {
transform: translateX(0);
}
}
}
footer {
position: absolute;
bottom: 0;
text-align: center;
font-size: 10px;
}
footer a {
text-decoration: none;
color: rgb(34, 148, 214);
}
footer i {
font-size: 1rem;
padding: 10px;
color: rgb(218, 211, 211);
}