-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 0746874
Showing
13 changed files
with
328 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Solar System</title> | ||
<link rel="stylesheet" href="style.css"> | ||
</head> | ||
|
||
<body> | ||
<div class="system"> | ||
<div class="neptune-container"> | ||
<img src="image/Neptune.png" alt="Neptune"> | ||
</div> | ||
|
||
<div class="uranus-container"> | ||
<img src="image/Uranus.png" alt="uranus"> | ||
</div> | ||
|
||
<div class="saturn-container"> | ||
<img src="image/Saturn.png" alt="saturn"> | ||
</div> | ||
|
||
<div class="jupiter-container"> | ||
<img src="image/Jupiter.png" alt="Jupiter"> | ||
</div> | ||
|
||
<div class="mars-container"> | ||
<img src="image/Mars.png" alt="mars"> | ||
</div> | ||
|
||
<div class="earth-container"> | ||
<img src="image/Earth.png" alt="earth"> | ||
</div> | ||
|
||
<div class="venus-container"> | ||
<img src="image/Venus.png" alt="venus"> | ||
</div> | ||
|
||
<div class="mercury-container"> | ||
<img src="image/Mercury.png" alt="mercury"> | ||
</div> | ||
|
||
<div class="sun-container"> | ||
<img src="image/sun.png" alt="sun"> | ||
</div> | ||
|
||
</div> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,276 @@ | ||
*{ | ||
padding: 0; | ||
margin: 0; | ||
box-sizing: border-box; | ||
} | ||
|
||
body { | ||
background: url('image/star.jpg') no-repeat center center/cover; | ||
width: 100vw; | ||
height: 100vh; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
.system { | ||
height: 100%; | ||
width: 100%; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
position: fixed; | ||
|
||
} | ||
|
||
/* --------------------------------------- neptune-container ------------------------------------ */ | ||
|
||
.neptune-container { | ||
position: absolute; | ||
width: 980px; | ||
height: 980px; | ||
border-radius: 100%; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
|
||
.neptune-container img { | ||
width: 60px; | ||
height: 60px; | ||
animation: neptune-animation 53s linear infinite; | ||
z-index: 1; | ||
} | ||
|
||
@keyframes neptune-animation { | ||
0% { | ||
transform: rotate(0deg) translate(490px) rotate(0deg); | ||
} | ||
|
||
100% { | ||
transform: rotate(360deg) translate(490px) rotate(360deg); | ||
} | ||
} | ||
|
||
/* --------------------------------------- uranus-container ------------------------------------ */ | ||
|
||
.uranus-container { | ||
position: absolute; | ||
width: 870px; | ||
height: 870px; | ||
border-radius: 100%; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
|
||
.uranus-container img { | ||
width: 62px; | ||
height: 62px; | ||
animation: uranus-animation 40s linear infinite; | ||
z-index: 1; | ||
} | ||
|
||
@keyframes uranus-animation { | ||
0% { | ||
transform: rotate(0deg) translate(435px) rotate(0deg); | ||
} | ||
|
||
100% { | ||
transform: rotate(360deg) translate(435px) rotate(360deg); | ||
} | ||
} | ||
|
||
/* --------------------------------------- saturn-container ------------------------------------ */ | ||
|
||
.saturn-container { | ||
position: absolute; | ||
width: 750px; | ||
height: 750px; | ||
border-radius: 100%; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
|
||
.saturn-container img { | ||
width: 135px; | ||
height: 135px; | ||
animation: saturn-animation 58s linear infinite; | ||
z-index: 1; | ||
} | ||
|
||
@keyframes saturn-animation { | ||
0% { | ||
transform: rotate(0deg) translate(378px) rotate(0deg); | ||
} | ||
|
||
100% { | ||
transform: rotate(360deg) translate(378px) rotate(360deg); | ||
} | ||
} | ||
|
||
/* --------------------------------------- jupiter-container ------------------------------------ */ | ||
|
||
.jupiter-container { | ||
position: absolute; | ||
width: 640px; | ||
height: 640px; | ||
border-radius: 100%; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
|
||
.jupiter-container img { | ||
width: 90px; | ||
height: 90px; | ||
animation: jupiter-animation 36s linear infinite; | ||
z-index: 1; | ||
} | ||
|
||
@keyframes jupiter-animation { | ||
0% { | ||
transform: rotate(0deg) translate(318px) rotate(0deg); | ||
} | ||
|
||
100% { | ||
transform: rotate(360deg) translate(318px) rotate(360deg); | ||
} | ||
} | ||
|
||
/* --------------------------------------- mars-container ------------------------------------ */ | ||
|
||
.mars-container { | ||
position: absolute; | ||
width: 525px; | ||
height: 525px; | ||
border-radius: 100%; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
|
||
.mars-container img { | ||
width: 50px; | ||
height: 50px; | ||
animation: mars-animation 48s linear infinite; | ||
z-index: 1; | ||
} | ||
|
||
@keyframes mars-animation { | ||
0% { | ||
transform: rotate(0deg) translate(260px) rotate(0deg); | ||
} | ||
|
||
100% { | ||
transform: rotate(360deg) translate(260px) rotate(360deg); | ||
} | ||
} | ||
|
||
/* --------------------------------------- earth-container ------------------------------------ */ | ||
|
||
.earth-container { | ||
position: absolute; | ||
width: 410px; | ||
height: 410px; | ||
border-radius: 100%; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
|
||
.earth-container img { | ||
width: 60px; | ||
height: 60px; | ||
animation: earth-animation 30s linear infinite; | ||
z-index: 1; | ||
} | ||
|
||
@keyframes earth-animation { | ||
0% { | ||
transform: rotate(0deg) translate(200px) rotate(0deg); | ||
} | ||
|
||
100% { | ||
transform: rotate(360deg) translate(200px) rotate(360deg); | ||
} | ||
} | ||
|
||
/* --------------------------------------- venus-container ------------------------------------ */ | ||
|
||
.venus-container { | ||
position: absolute; | ||
width: 300px; | ||
height: 300px; | ||
border-radius: 100%; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
|
||
.venus-container img { | ||
width: 70px; | ||
height: 70px; | ||
animation: venus-animation 55s linear infinite; | ||
z-index: 1; | ||
} | ||
|
||
@keyframes venus-animation { | ||
0% { | ||
transform: rotate(0deg) translate(150px) rotate(0deg); | ||
} | ||
|
||
100% { | ||
transform: rotate(360deg) translate(150px) rotate(360deg); | ||
} | ||
} | ||
|
||
/* --------------------------------------- mercury-container ------------------------------------ */ | ||
|
||
.mercury-container { | ||
position: absolute; | ||
width: 200px; | ||
height: 200px; | ||
border-radius: 100%; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
|
||
.mercury-container img { | ||
width: 40px; | ||
height: 40px; | ||
animation: mercury-animation 25s linear infinite; | ||
z-index: 1; | ||
} | ||
|
||
@keyframes mercury-animation { | ||
0% { | ||
transform: rotate(0deg) translate(96px) rotate(0deg); | ||
} | ||
|
||
100% { | ||
transform: rotate(360deg) translate(96px) rotate(360deg); | ||
} | ||
} | ||
|
||
|
||
/* --------------------------------------- sun-container ------------------------------------ */ | ||
|
||
.sun-container img { | ||
width: 150px; | ||
height: 150px; | ||
animation: sun-animation 200s linear infinite; | ||
z-index: 1; | ||
} | ||
|
||
@keyframes sun-animation { | ||
0% { | ||
transform: rotate(0deg) translate(0px) rotate(0deg); | ||
} | ||
|
||
100% { | ||
transform: rotate(360deg) translate(0px) rotate(360deg); | ||
} | ||
} |