Skip to content

Commit

Permalink
stars galaxy lesson added
Browse files Browse the repository at this point in the history
  • Loading branch information
Paarmita committed May 1, 2018
1 parent 035721a commit 57368ee
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 0 deletions.
Binary file added stars and galaxy/images/stars.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added stars and galaxy/images/twinkling.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions stars and galaxy/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<title>
</title>
<<head>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="stars"></div>
<div class="twinkling"></div>
</body>
</html>
46 changes: 46 additions & 0 deletions stars and galaxy/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
@keyframes move-twink-back{
from{background-position: 0 0;}
to{background-position: -10000px 5000px;}
}
@-webkit-keyframes move-twink-back{
from{background-position: 0 0;}
to{background-position: -10000px 5000px;}
}
@-moz-keyframes move-twink-back{
from{background-position: 0 0;}
to{background-position: -10000px 5000px;}
}
@-ms-keyframes move-twink-back{
from{background-position: 0 0;}
to{background-position: -10000px 5000px;}
}

.stars, .twinkling {
position: absolute;
top:0;
right:0;
bottom:0;
width:100%;
height: 100%;
display: block;
}

.stars{
background: #000 url(images/stars.png) repeat top center;
z-index: 0;
}

.twinkling{
background: transparent url(images/twinkling.png) repeat top center;
z-index: 1;

-moz-animation: move-twink-back 200s linear infinite;
-ms-animation:move-twink-back 200s linear infinite;
-o-animation:move-twink-back 200s linear infinite;
-webkit-animation:move-twink-back 200s linear infinite;
animation:move-twink-back 200s linear infinite;
}




0 comments on commit 57368ee

Please sign in to comment.