-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmoon.css
More file actions
41 lines (40 loc) · 837 Bytes
/
Copy pathmoon.css
File metadata and controls
41 lines (40 loc) · 837 Bytes
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
body{
background-color: black;
display: flex;
align-items: center;
justify-content: start;
flex-direction: column;
margin: 0 ;
}
.moon{
background: black;
width: 250px;
height: 250px;
border-radius: 50%;
position: relative;
}
.moon::before{
content: "";
background-color: #ffff;
position: absolute;
display: block;
height: 100%;
width: 100%;
border-radius: 50%;
z-index: -1;
animation: animation 3.2s linear infinite alternate;
}
@keyframes animation {
0% {
transform: translateX(40px) scale(0.9);
box-shadow: none;
}
50%{
transform: translate(0px,0px) scale(1.02);
box-shadow: 0 0 10px #ffff, 0 0 80px 2px #ffff;
}
100%{
transform: translateX(-40px) scale(0.9);
box-shadow: none;
}
}