Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 3.39 KB | None | 0 0
  1. <html>
  2.     <head>
  3.         <style>
  4.             html, body {
  5.                 width: 100%;
  6.                 height: 100%;
  7.                
  8.                 background-color: black;
  9.             }
  10.            
  11.             #sun {
  12.                 position: absolute;
  13.                 top: 50%;
  14.                 left: 50%;
  15.                
  16.                 height: 200px;
  17.                 width: 200px;
  18.                 margin-top: -100px;
  19.                 margin-left: -100px;
  20.                
  21.                 border-color: orange;
  22.                 border-width: 2px;
  23.                 border-style: solid;
  24.                 border-radius: 50%;
  25.                
  26.                 box-shadow: 0 0 64px yellow;
  27.                
  28.                 animation: dynamic-glow 1s linear infinite;
  29.             }
  30.            
  31.             #earth {
  32.                 position: absolute;
  33.                 top: 0;
  34.                 left: 50%;
  35.                
  36.                 height: 100px;
  37.                 width: 100px;
  38.                 margin-left: -50px;
  39.                 margin-top: -50px;
  40.                
  41.                 border-color: blue;
  42.                 border-width: 2px;
  43.                 border-style: solid;
  44.                 border-radius: 50%;    
  45.             }
  46.            
  47.             #moon {
  48.                 position: absolute;
  49.                 top: 0;
  50.                 left: 50%;
  51.                
  52.                 height: 50px;
  53.                 width: 50px;
  54.                 margin-left: -25px;
  55.                 margin-top: -25px;
  56.                
  57.                 border-color: blue;
  58.                 border-width: 2px;
  59.                 border-style: solid;
  60.                 border-radius: 50%;    
  61.             }
  62.            
  63.             #earth-orbit {
  64.                 position: absolute;
  65.                 top: 50%;
  66.                 left: 50%;
  67.            
  68.                 width: 600px;
  69.                 height: 600px;
  70.                 margin-top: -300px;
  71.                 margin-left: -300px;
  72.            
  73.                 border-width: 2px;
  74.                 border-style: dotted;
  75.                 border-color: rgba(255, 255, 255, 0.2);
  76.                 border-radius: 50%;
  77.                
  78.                 animation: spin-right 10s linear infinite;
  79.             }
  80.            
  81.             #moon-orbit {
  82.                 position: absolute;
  83.                 top: 0;
  84.                 left: 50%;
  85.                
  86.                 width: 200px;
  87.                 height: 200px;
  88.                 margin-top: -100px;
  89.                 margin-left: -100px;
  90.            
  91.                 border-width: 2px;
  92.                 border-style: dotted;
  93.                 border-color: rgba(255, 255, 255, 0.2);
  94.                 border-radius: 50%;
  95.                
  96.                 animation: spin-right 2s linear infinite;    
  97.             }
  98.            
  99.            
  100.             @keyframes spin-right {
  101.               100% { transform: rotate(360deg); }
  102.             }
  103.            
  104.             @keyframes dynamic-glow {
  105.               50% { transform: scale(0.95); }
  106.             }
  107.         </style>
  108.     </head>
  109.    
  110.     <body>
  111.         <img id="sun" src="http://goo.gl/PmbqZa">
  112.        
  113.         <div id="earth-orbit">
  114.             <div id="moon-orbit">
  115.                 <img id="moon" src="http://goo.gl/41IWnf">
  116.             </div>
  117.             <img id="earth" src="http://goo.gl/41IWnf">
  118.         </div>        
  119.     </body>
  120. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement