Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ashlynnpai/063acca5c78010583c7d to your computer and use it in GitHub Desktop.
Save ashlynnpai/063acca5c78010583c7d to your computer and use it in GitHub Desktop.
A Pen by Ashlynn Pai.

Hubble Telescope Orbits Earth

Uses CSS3.

The earth photo GPN-2000-001097 and Hubble 1990-037B are property of NASA and are in the public domain.

A Pen by Ashlynn Pai on CodePen.

License.

<html>
<head>
<title>Hubble Telescope Orbits Earth</title>
</head>
<body>
<div id="hub">
<img src="http://imageshack.com/a/img843/585/u4nm.png" alt="NASA hubble telescope 1990-037B">
</div>
</body>
</html>
html {
background: url("http://imageshack.com/a/img845/7937/lhl3.jpg") no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
#hub {
position: relative;
-webkit-animation: fly 30s normal linear;
-moz-animation: fly 30s normal linear;
-o-animation: fly 30s normal linear;
animation: fly 30s normal linear;
}
@-webkit-keyframes fly {
0% {
top: 10px; left: 10px;
}
100% {
top: 500px; left: 1980px;
}
}
@-moz-keyframes fly {
0% {
top: 10px; left: 10px;
}
100% {
top: 500px; left: 1980px;
}
}
@-o-keyframes fly {
0% {
top: 10px; left: 10px;
}
100% {
top: 500px; left: 1980px;
}
}
@keyframes fly{
0% {
top: 10px; left: 10px;
}
100% {
top: 500px; left: 1980px;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment