-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontent.html
341 lines (305 loc) · 10.9 KB
/
content.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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="stylesheets/content.css">
<link href="https://fonts.googleapis.com/css2?family=Baloo+Tammudu+2:wght@400;600&display=swap" rel="stylesheet">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Big+Shoulders+Stencil+Display:wght@900&display=swap"
rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body>
<nav>
<a href="index.html"><img src="img/logo2.png" alt=""></a>
<div class="navlinks" id="navlink">
<i class="fa fa-times" onclick="hidemenu()"></i>
<ul>
<li><a href="index.html">HOME</a></li>
<li><a href="content.html">EXPLORE</a></li>
<li><a href="age.html">AGE CALCULATOR</a></li>
<li><a href="weight.html">WEIGHT CALCULATOR</a></li>
<li><a href="contact.html">CONTACT US</a></li>
<li><a href="about.html">ABOUT US</a></li>
</ul>
</div>
<i class="fa fa-bars" onclick="showmenu()"></i>
</nav>
<div class="title">
<h1>Planets and Other Worlds</h1>
</div>
<div class="titlematter">
Where did we come from? Are we alone in the Universe? We can only answer these questions by exploring the
planets and other worlds of our solar system and beyond. Learn why these worlds are so important, and how you
can get involved.
</div>
<div class="container">
<div class="box" id="mercury">
<div class="boximg">
<a href="planets/mercury.html">
<img src="img/mercury.jpg" alt="" srcset="">
</a>
</div>
<div class="boxcontent">
<a href="planets/mercury.html">
<h3>Mercury, Planet of Extremes</h3>
</a>
Mercury can teach us how planets form and what the early solar system was like when life arose on Earth.
</div>
</div>
<div class="box" id="venus">
<div class="boximg">
<a href="planets/venus.html">
<img src="img/venus.jpg" alt="" srcset="">
</a>
</div>
<div class="boxcontent">
<a href="planets/venus.html">
<h3>Venus, Cloudy With A Chance of Life</h3>
</a>
Venus may have had oceans and been habitable to life before being transformed into an inhospitable
wasteland.
</div>
</div>
<div class="box" id="earth">
<div class="boximg">
<a href="planets/earth.html">
<img src="img/earth.jpg" alt="" srcset="">
</a>
</div>
<div class="boxcontent">
<a href="planets/earth.html">
<h3>Earth, Our Home Planet</h3>
</a>
Earth, the only planet known to support life, offers liquid water, an oxygen-rich atmosphere, and
protection
from the Sun’s harmful radiation.
</div>
</div>
<div class="box" id="moon">
<div class="boximg">
<a href="planets/moon.html">
<img src="img/moon.jpg" alt="" srcset="">
</a>
</div>
<div class="boxcontent">
<a href="planets/moon.html">
<h3>The Moon, Preserving Earth's Origin Story</h3>
</a>
The Moon is the only world besides Earth ever visited by humans. By studying it, scientists can
piece
together Earth’s origin story.
</div>
</div>
<div class="box" id="mars">
<div class="boximg">
<a href="planets/mars.html">
<img src="img/mars2.jpg" alt="" srcset="">
</a>
</div>
<div class="boxcontent">
<a href="planets/mars.html">
<h3>Mars, the Red Planet</h3>
</a>
Mars once had liquid water on the surface and could have supported life. We don't know how it changed to
the
cold, dry desert-world it is today.
</div>
</div>
<div class="box" id="asteroid">
<div class="boximg">
<a href="planets/asteroid.html">
<img src="img/asteroid.jpg" alt="" srcset="">
</a>
</div>
<div class="boxcontent">
<a href="planets/asteroid.html">
<h3>
Asteroids, Comets, and Other Small Worlds</h3>
</a>
These leftover planet-building materials are time capsules that give us a peek into our origins.
</div>
</div>
<div class="box" id="jupiter">
<div class="boximg">
<a href="planets/jupiter.html">
<img src="img/jupiter.png" alt="" srcset="">
</a>
</div>
<div class="boxcontent">
<a href="planets/jupiter.html">
<h3>Jupiter, the Planet with a Solar System of Its Own</h3>
</a>
Jupiter, our largest planet, teaches us how solar systems evolve. Its four planet-like moons make it a
solar
system of its own.
</div>
</div>
<div class="box" id="saturn">
<div class="boximg">
<a href="planets/saturn.html">
<img src="img/sat.jpg" alt="" srcset="">
</a>
</div>
<div class="boxcontent">
<a href="planets/saturn.html">
<h3>Saturn, Planet of Rings, Moons, and More to Explore</h3>
</a>
Saturn is the crown jewel of our solar system. It has a stunning set of rings, diverse moons, and so
much
more to explore.
</div>
</div>
<div class="box" id="uranus">
<div class="boximg">
<a href="planets/uranus.html">
<img src="img/Uranus.jpg" alt="" srcset="">
</a>
</div>
<div class="boxcontent">
<a href="planets/uranus.html">
<h3>Uranus, the Sideways Planet</h3>
</a>
Uranus may be the butt of all planet jokes, but there's much more to this world than potty humor.
</div>
</div>
<div class="box" id="neptune">
<div class="boximg">
<a href="planets/neptune.html">
<img src="img/neptune.png" alt="" srcset="">
</a>
</div>
<div class="boxcontent">
<a href="planets/neptune.html">
<h3>Neptune, Planet of Wind and Ice</h3>
</a>
Neptune, our outermost planet, is a windy blue world with exotic ice, raging storms, rings, and a moon
that
could have a subsurface ocean.
</div>
</div>
</div>
<div class="end"></div>
<!-----------script for menu close and open-------->
<script>
var navlink = document.getElementById("navlink");
function showmenu() {
navlink.style.right = "0";
navlink.style.display = "flex";
}
function hidemenu() {
navlink.style.right = "-200px";
navlink.style.display = "none";
location.reload();
}
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.7.0/gsap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.7.0/ScrollTrigger.min.js"></script>
<script>
function myfunction(x) {
if(x.matches){
}
else{
gsap.registerPlugin(ScrollTrigger);
gsap.from(".titlematter", {
y: innerHeight * 1 / 3,
scale: 1.5,
duration: 2,
scrollTrigger: {
trigger: ".titlematter",
start: 300,
scrub:true,
pin:true
}
})
gsap.from("#mercury", {
x: innerWidth *- 1,
duration: 5,
scrollTrigger: {
trigger: "#mercury",
scrub:true,
}
})
gsap.from("#venus", {
x: innerWidth * 1,
duration: 5,
scrollTrigger: {
trigger: "#venus",
scrub:true,
}
})
gsap.from("#earth", {
x: innerWidth * -1,
duration: 5,
scrollTrigger: {
trigger: "#earth",
scrub:true,
}
})
gsap.from("#moon", {
x: innerWidth * 1,
duration: 5,
scrollTrigger: {
trigger: "#moon",
scrub:true,
}
})
gsap.from("#mars", {
x: innerWidth * -1,
duration: 5,
scrollTrigger: {
trigger: "#mars",
scrub:true,
}
})
gsap.from("#asteroid", {
x: innerWidth * 1,
duration: 5,
scrollTrigger: {
trigger: "#asteroid",
scrub:true,
}
})
gsap.from("#jupiter", {
x: innerWidth * -1,
duration: 5,
scrollTrigger: {
trigger: "#jupiter",
scrub:true,
}
})
gsap.from("#saturn", {
x: innerWidth * 1,
duration: 5,
scrollTrigger: {
trigger: "#saturn",
scrub:true,
}
})
gsap.from("#uranus", {
x: innerWidth * -1,
duration: 5,
scrollTrigger: {
trigger: "#uranus",
scrub:true,
}
})
gsap.from("#neptune", {
x: innerWidth * 1,
duration: 5,
scrollTrigger: {
trigger: "#neptune",
scrub:true,
}
})
}
}
var x= window.matchMedia("(max-width:700px")
myfunction(x)
</script>
</body>
</html>