-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
d250bea
commit f5f341c
Showing
6 changed files
with
97 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.
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,18 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width,initial-scale=1"> | ||
<title>animated space</title> | ||
<link rel="stylesheet" href="style.css"> | ||
</head> | ||
<body> | ||
|
||
<div class="main"> | ||
<div class="space2"></div> | ||
<div class="space1"></div> | ||
<div class="roket"></div> | ||
<div class="earth"></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,79 @@ | ||
body{ | ||
background-color: black; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
.main{ | ||
width: 100%; | ||
height: 100vh; | ||
position: relative; | ||
overflow: hidden; | ||
} | ||
.main .space1{ | ||
position: absolute; | ||
width: 200%; | ||
height: 300px; | ||
background: url('img/star1.jpg') repeat-x center; | ||
animation: star1 100s linear infinite; | ||
z-index: -10; | ||
} | ||
|
||
.main .space2{ | ||
position: absolute; | ||
top: 0; | ||
width: 200%; | ||
height: 600px; | ||
background: url('img/star2.png') repeat-x center; | ||
z-index: 10; | ||
animation: star2 90s linear infinite; | ||
} | ||
.main .earth{ | ||
background: url('img/Earth_Globe.png') no-repeat center /cover; | ||
width: 100px; | ||
height: 100px; | ||
position: absolute; | ||
top: 300px; | ||
right: -10%; | ||
z-index: 100; | ||
animation: earth 30s linear infinite; | ||
} | ||
|
||
.main .roket{ | ||
position: absolute; | ||
top: 200px; | ||
left: 100px; | ||
transform: rotate(90deg); | ||
width: 100px; | ||
height: 100px; | ||
background: url('img/roket.gif') no-repeat center /cover; | ||
z-index: 100; | ||
} | ||
|
||
|
||
@keyframes star1{ | ||
0%{ | ||
left: 0; | ||
} | ||
100%{ | ||
|
||
left: -100%; | ||
} | ||
} | ||
@keyframes star2{ | ||
0%{ | ||
left: 0; | ||
} | ||
100%{ | ||
left: -100%; | ||
} | ||
} | ||
|
||
@keyframes earth{ | ||
0%{ | ||
right: -5%; | ||
} | ||
100%{ | ||
right: 103%; | ||
} | ||
} |