Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

Commit

Permalink
Merge pull request #461 from Rohan-2/earth
Browse files Browse the repository at this point in the history
adding my animation to the project
  • Loading branch information
l-white committed Aug 24, 2023
2 parents d301be0 + c851a34 commit 70ee17c
Show file tree
Hide file tree
Showing 4 changed files with 96 additions and 0 deletions.
Binary file added Art/Rohan/Earth.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions Art/Rohan/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!-- All images available from -->
<!-- https://www.solarsystemscope.com/textures/ -->
<div class='planet-container'>
<div class='night'></div>
<div class='day'></div>
<div class='clouds'></div>
<div class='inner-shadow'></div>
</div>

<link rel="stylesheet" href="styles.css">
79 changes: 79 additions & 0 deletions Art/Rohan/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
body {
align-items: center;
background-color: #000;
display: flex;
height: 100%;
justify-content: center;
margin: 0 0;
overflow: hidden;
position: absolute;
width: 100%;
}
.planet-container {
border-radius: 50%;
box-shadow: 5px -3px 10px 3px #5e90f1;
height: 500px;
overflow: hidden;
position: relative;
width: 500px;
z-index: 1;
}
.night {
animation: rotate-night 80s linear infinite;
background-image: url(https://www.solarsystemscope.com/textures/download/2k_earth_nightmap.jpg);
background-size: 200%;
height: 500px;
position: absolute;
width: 500px;
z-index: 2;
}
.day {
animation: rotate-day 80s linear infinite;
background-image: url(https://www.solarsystemscope.com/textures/download/2k_earth_daymap.jpg);
background-size: 200%;
border-left: solid 1px black;
border-radius: 50%;
box-shadow: 5px 0 20px 10px #040615 inset;
height: 500px;
margin-left: 110px;
position: absolute;
width: 500px;
z-index: 3;
}
.clouds {
animation: rotate-day 50s linear infinite, spin-clouds 100s ease infinite;
background-image: url(https://www.solarsystemscope.com/textures/download/2k_earth_clouds.jpg);
background-size: 200%;
border-radius: 50%;
box-shadow: 5px 0 20px 10px #040615 inset, -9px 0px 20px 10px #5e90f1 inset;
height: 500px;
margin-left: 100px;
opacity: 0.45;
position: absolute;
width: 500px;
z-index: 4;
}
.inner-shadow {
background: transparent;
border-radius: 50%;
box-shadow: -5px 0 10px 1px #152b57 inset, 5px 0 10px 1px #040615 inset;
height: 500px;
margin-left: 0;
position: absolute;
width: 500px;
z-index: 5;
}

@keyframes rotate-day {
0% { background-position: 120% 0; }
100% { background-position: -80% 0; }
}
@keyframes rotate-night {
0% { background-position: calc(120% + 120px) 0; }
100% { background-position: calc(-80% + 120px) 0; }
}
@keyframes spin-clouds {
0% { transform: rotate(0deg); }
50% { transform: rotate(20deg); }
100% { transform: rotate(0deg); }
}
7 changes: 7 additions & 0 deletions include.js
Original file line number Diff line number Diff line change
Expand Up @@ -9452,6 +9452,13 @@ let cards = [
imageLink: './Art/poltu/world.gif',
author: 'neeshat',
githubLink: 'https://github.com/neeshat060708'
},
{
artName: 'Earth-Rotation',
pageLink: './Art/Rohan/index.html',
imageLink: './Art/Rohan/Earth.gif',
author: 'Rohan',
githubLink: 'https://github.com/Rohan-2'
}
];

Expand Down

0 comments on commit 70ee17c

Please sign in to comment.