-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
60 lines (60 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
*{
margin:0px;
padding: 0px;
}
body{
width: 100%;
height:100vh;
background-image: url(bg1.jpg);
background-size: cover;
}
.earth{
width: 200px;
height: 200px;
background-image: url(earth.png);
border-radius: 50%;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
background-size: cover;
background-position: center center;
/* background-size: 700px 100%; */
box-shadow: inset 0px 0px 5px #FDFfF29E,
inset 30px 0px 50px #c88383;
animation: rotate 10s infinite linear;
}
@keyframes rotate{
0%{
background-position-x:0px ;
}
100%{
background-position-x:1000px;
}
}
.orbit{
width: 500px;
height: 500px;
border: 1px solid rgb(159, 119, 119);
position: absolute;
top: 50%;
left:50%;
transform: translate(-50%,-50%);
border-radius: 50%;
animation: rotate-2 20s infinite linear;
}
@keyframes rotate-2{
100%{
transform: translate(-50%,-50%)rotate(360deg);
}
}
.moon{
width: 120px;
height: 120px;
background: url(moon.jpg);
background-size: 220px;
background-position: center;
border-radius: 50%;
position: absolute;
top: 30px;
}