-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSolarSVG4.html
165 lines (144 loc) · 4.36 KB
/
SolarSVG4.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
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<!DOCTYPE html>
<html>
<head>
<title>Solar System</title>
<style>
#sun {
fill: yellow;
stroke: orange;
stroke-width: 5;
}
#mercury {
fill: gray;
animation: mercury-orbit 88.8s linear infinite;
}
#venus {
fill: orange;
animation: venus-orbit 225s linear infinite;
}
#earth {
fill: blue;
animation: earth-orbit 36525ms linear infinite;
}
#mars {
fill: red;
animation: mars-orbit 68724ms linear infinite;
}
#jupiter {
fill: orange;
animation: jupiter-orbit 4332.59ms linear infinite;
}
#saturn {
fill: teal;
animation: saturn-orbit 10759.22ms linear infinite;
}
#uranus {
fill: lightblue;
animation: uranus-orbit 30688.5ms linear infinite;
}
#neptune {
fill: darkblue;
animation: neptune-orbit 60182ms linear infinite;
}
#pluto {
fill: gray;
animation: pluto-orbit 90560ms linear infinite;
}
@keyframes mercury-orbit {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
@keyframes venus-orbit {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
@keyframes earth-orbit {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
@keyframes mars-orbit {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
@keyframes jupiter-orbit {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
@keyframes saturn-orbit {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
@keyframes uranus-orbit {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
@keyframes neptune-orbit {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
@keyframes pluto-orbit {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
</style>
</head>
<body>
<svg width="2000" height="2000">
<linearGradient id="space" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" stop-color="#00000" />
<stop offset="1" stop-color="#b300ff" />
</linearGradient>
<rect id="space" width="100%" height="100%" fill="url(#space)" />
<linearGradient id="sun-gradient" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" stop-color="#FFFF00" />
<stop offset="1" stop-color="#FFA500" />
</linearGradient>
<circle id="sun-gradient" cx="100" cy="500" r="500" fill="url(#sun-gradient)" />
<circle id="mercury" class="planet-orbit" cx="200" cy="500" r="5" />
<circle id="venus" class="planet-orbit" cx="300" cy="500" r="10" />
<circle id="earth" class="planet-orbit" cx="400" cy="500" r="105" />
<circle id="mars" class="planet-orbit" cx="500" cy="500" r="20" />
<circle id="jupiter" class="planet-orbit" cx="600" cy="500" r="250" />
<circle id="saturn" class="planet-orbit" cx="700" cy="500" r="300" />
<circle id="uranus" class="planet-orbit" cx="800" cy="500" r="35" />
<circle id="neptune" class="planet-orbit" cx="900" cy="500" r="40" />
<circle id="pluto" class="planet-orbit" cx="1000" cy="500" r="45" />
</svg>
</body>
</html>