-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.css
71 lines (65 loc) · 1.68 KB
/
main.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
.osnova {
background-image: url(./image/1688173217_kartin-papik-pro-p-kartinki-vselennaya-nebo-33.jpg);
width: 100%;
height: 900px;
}
.earth {
background-image: url(./image/Earth_Western_Hemisphere_transparent_background.png);
width: 480px;
height: 480px;
border-radius: 50%;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
margin: auto;
transform: rotateX(300deg) rotateY(181deg) rotateZ(191deg);
}
.orbita {
width: 680px;
height: 680px;
border-radius: 50%;
border: 2px solid rgb(144, 144, 144);
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
margin: auto;
transform-style: preserve-3d;
transform: rotateX(243deg) rotateY(0deg) rotateZ(0deg);
}
.moon {
background-image: url(./image/pngimg.com\ -\ moon_PNG2.png);
width: 100px;
height: 100px;
border-radius: 50%;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
margin: auto;
transform: rotateZ(0deg) translate(350px) rotateY(90deg) rotateX(90deg);
animation: orbita 9s infinite;
animation-timing-function: linear;
}
.moon:hover {
animation-play-state: paused;
animation-delay: 1s;
}
@keyframes orbita {
0% {
box-shadow: -52px -4px 10px 22px rgba(63, 63, 63, 0.75) inset;
transform: rotateZ(0deg) translate(350px) rotateY(90deg) rotateX(90deg);
}
50% {
transform: rotateZ(180deg) translate(350px) rotateY(90deg) rotateX(270deg);
box-shadow: 21px 20px 36px 27px rgba(42, 41, 41, 0.75)inset;
}
100% {
transform: rotateZ(360deg) translate(350px) rotateY(90deg) rotateX(450deg);
box-shadow: -43px -100px 15px 41px rgba(45, 44, 44, 0.75)inset;
}
}