-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmoon.html
67 lines (66 loc) · 1.23 KB
/
moon.html
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
<style>
@keyframes cresent {
0% {
transform: translate(-100px, 30px) scale(0.9);
box-shadow: none;
}
50% {
transform: translate(0px, 0px) scale(1.02);
box-shadow: 0 0 10px #f9f3f2, 0 0 80px 8px #c7938b;
background-color: #efdbd8;
}
30% {
transform: translate(0px, 1) scale(0.9);
box-shadow: none;
}
70% {
transform: translate(10px, 1) scale(0.9);
box-shadow: none;
}
100% {
transform: translate(100px, -30px) scale(0.9);
box-shadow: none;
}
}
html {
box-sizing: border-box;
}
*, *::after, *::before {
box-sizing: inherit;
}
html, body {
height: 100%;
}
body {
display: flex;
justify-content: center;
align-items: center;
background-image: linear-gradient(30deg, #182c51, #09101e);
overflow: hidden;
}
.moon {
background-image: linear-gradient(30deg, #13223f, #0e1a30);
width: 256px;
height: 256px;
border-radius: 50%;
position: relative;
}
.moon::before {
content: '';
background-color: #c7938b;
position: absolute;
display: block;
height: 100%;
width: 100%;
border-radius: 50%;
z-index: -1;
animation: 9.2s cresent linear infinite alternate;
}
@media (max-width: 768px) {
.moon {
width: 160px;
height: 160px;
}
}
</style>
<div class="moon"></div>