Advertisement
Guest User

Prospect Academy

a guest
Dec 8th, 2016
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 7.18 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.     <title></title>
  5.     <style type="text/css">
  6.         body {
  7.     background-color: #000000;
  8. }
  9.  
  10. .scene {
  11.     position: relative;
  12.     width: 800px;
  13.     height: 600px;
  14.     margin: 50px auto;
  15.     overflow: hidden;
  16.     background-image: -webkit-linear-gradient(top, #011428, #032a54);
  17. }
  18.  
  19. .ground {
  20.     width: 400px;
  21.     background-color: #f5f5f5;
  22.     border-radius: 50%;
  23.     width: 770px;
  24.     height: 200px;
  25.     position: absolute;
  26.     bottom: 0;
  27.     margin-bottom: -80px;
  28.     right: 140px;
  29.     background-color: #99a;
  30.     box-shadow: 0 0 100px #457eb2 inset;
  31. }
  32. .ground.back-1 {left: 180px;}
  33. .ground.front {margin-bottom: -124px;left: -27px;}
  34. .ground.front-2 {margin-bottom: -109px;right: -508px;}
  35.  
  36. .house {
  37.     position: absolute;
  38.     width: 300px;
  39.     height: 365px;
  40.     bottom: 50px;
  41.     right: 110px;
  42. }
  43.  
  44. .house .roof {
  45.     width: 340px;
  46.     height: 170px;
  47.     right: -20px;
  48.     position: absolute;
  49.     overflow: hidden;
  50. }
  51.  
  52. .house .roof .roof-wall {
  53.     position: absolute;
  54.     width: 280px;
  55.     height: 280px;
  56.     background-color: #573808;
  57.     -webkit-transform: rotate(45deg);
  58.     left: 25px;
  59.     top:60px;
  60.     border: 5px solid #3a1e12;
  61.     box-shadow: 0 0 30px black inset;
  62.     background: repeating-linear-gradient(45deg, #573808 0%,#573808 5%,#3a1e12 5%,#3a1e12 5%,#3a1e12 5%,#573808 5%,#3a1e12 6%);
  63. }
  64.  
  65. .house .wall {
  66.     width: 100%;
  67.     height: 200px;
  68.     position: absolute;
  69.     bottom: 0;
  70.     background-color: #180c00;
  71.     background: repeating-linear-gradient(to bottom, #573808 0%,#3a1e12 15%);
  72. }
  73.  
  74. .house .wall .crack {
  75.     position: absolute;
  76.     width: 100%;
  77.     height: 100%;
  78.     opacity: 0.5;
  79.     background: repeating-linear-gradient(3deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 2%, rgba(0,0,0,0) 2%,#3a1e12 2%,#3a1e12 2%,#573808 2%,#3a1e12 3%);
  80. }
  81.  
  82. .house .wall .crack:nth-child(2) {
  83.     opacity: 0.3;
  84.     background: repeating-linear-gradient(-4deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 2%, rgba(0,0,0,0) 2%,#3a1e12 2%,#3a1e12 2%,#573808 2%,#3a1e12 3%);
  85. }
  86.  
  87. .house .window {
  88.     position: absolute;
  89.     height: 70px;
  90.     width: 65px;
  91.     background-color: #cccc00;
  92.     border: 5px solid #3a1e12;
  93.     bottom: 53px;
  94.     left: 110px;
  95.     box-shadow: 0 0 5px black;
  96. }
  97.  
  98. .house .window .frame:nth-child(1) {
  99.     position: absolute;
  100.     height: 100%;
  101.     left: 50%;
  102.     margin-left: -3px;
  103.     width: 7px;
  104.     background-color: #3a1e12;
  105. }
  106.  
  107. .house .window .frame:nth-child(2) {
  108.     position: absolute;
  109.     width: 100%;
  110.     top: 30%;
  111.     height: 7px;
  112.     background-color: #3a1e12;
  113. }
  114.  
  115. .house .window .light {
  116.     width: 100%;
  117.     height: 100%;
  118.     background-color: #ffff00;
  119.     opacity: 0.5;
  120.     box-shadow: 0 0 100px yellow;
  121.     -webkit-animation: window-light 3s linear infinite;
  122. }
  123.  
  124. .house .chimney {
  125.     position: absolute;
  126.     height: 80px;
  127.     width: 30px;
  128.     top: 58px;
  129.     left: 20px;
  130.     background: linear-gradient(to right, rgba(42,41,45,1) 0%,rgba(80,84,91,1) 36%,rgba(22,27,33,1) 100%);
  131. }
  132.  
  133. .smoke-area {
  134.     position: absolute;
  135.     width: 300px;
  136.     height: 150px;
  137.     top: 103px;
  138.     right: 110px;
  139. }
  140.  
  141. .smoke-area .smoke {
  142.     position: absolute;
  143.     width: 30px;
  144.     height: 30px;
  145.     border-radius: 50%;
  146.     box-shadow: 0 0 20px lightgray;
  147.     background: radial-gradient(ellipse at center, rgba(206,220,231,1) 33%,rgba(89,106,114,0) 100%);
  148.     top: 120px;
  149.     left: 20px;
  150.     -webkit-animation: smoke-move 2.3s linear infinite
  151. }
  152.  
  153. .smoke-area .smoke:nth-child(2) {
  154.     -webkit-animation: smoke-move 2.5s linear infinite
  155. }
  156.  
  157. .smoke-area .smoke:nth-child(3) {
  158.     -webkit-animation: smoke-move 2.7s linear infinite
  159. }
  160.  
  161. .smoke-area .smoke:nth-child(4) {
  162.     -webkit-animation: smoke-move 2.2s linear infinite
  163. }
  164.  
  165. .smoke-area .smoke:nth-child(5) {
  166.     -webkit-animation: smoke-move 2.1s linear infinite
  167. }
  168.  
  169. .smoke-area .smoke:nth-child(6) {
  170.     -webkit-animation: smoke-move 2s linear infinite
  171. }
  172.  
  173. .smoke-area .smoke:nth-child(7) {
  174.     -webkit-animation: smoke-move 2.9s linear infinite
  175. }
  176.  
  177. .moon {
  178.     position: absolute;
  179.     width: 60px;
  180.     height: 60px;
  181.     top: 100px;
  182.     left: 100px;
  183.     background-color: #ffffaa;
  184.     box-shadow: 0 0 40px #ffffaa;
  185.     border-radius: 50%;
  186. }
  187.  
  188. .stars, .meteors {
  189.     position: absolute;
  190.     width: 100%;
  191.     height: 100%;
  192. }
  193.  
  194. .star {
  195.     position: absolute;
  196.     border-radius: 50%;
  197.     width: 1px;
  198.     height: 1px;
  199.     background-color: #ffffff;
  200.     box-shadow: 0 0 10px 2px white;
  201. }
  202.  
  203. .meteor {
  204.     position: absolute;
  205.     top: 50px;
  206.     left: 280px;
  207.     width: 300px;
  208.     height: 1px;
  209.     -webkit-transform: rotate(-45deg);
  210.     background-image: -webkit-linear-gradient(left, white, rgba(255,255,255,0));
  211. }
  212.  
  213. .meteor:before {
  214.     content: ' ';
  215.     position: absolute;
  216.     width: 4px;
  217.     height: 5px;
  218.     background-color: white;
  219.     border-radius: 50%;
  220.     box-shadow: 0 0 14px 4px white;
  221.     margin-top: -2px;
  222. }
  223.  
  224. .star:nth-child(1) {top: 100px;left: 685px;}
  225. .star:nth-child(2) {top: 37px;left: 537px;}
  226. .star:nth-child(3) {top: 150px;left: 350px;}
  227. .star:nth-child(4) {top: 50px;left: 320px;}
  228. .star:nth-child(5) {top: 30px;left: 755px;}
  229. .star:nth-child(6) {top: 70px;left: 483px;}
  230. .star:nth-child(7) {top: 18px;left: 80px;}
  231. .meteor:nth-child(1) {top: 100px;left: 480px;-webkit-animation: meteor 10s linear infinite;}
  232. .meteor:nth-child(2) {top: 200px;left: 280px;-webkit-animation: meteor 10s linear infinite;}
  233. .meteor:nth-child(3) {top: 250px;left: 790px;-webkit-animation: meteor 9s linear infinite;}
  234.  
  235. @-webkit-keyframes window-light {
  236.     0% {opacity: 0.3}
  237.     20% {opacity: 0.4}
  238.     50% {opacity: 0.3}
  239.     70% {opacity: 0.5}
  240.     80% {opacity: 0.3}
  241.     90% {opacity: 0.4}
  242.     100% {opacity: 0.3}
  243. }
  244.  
  245. @-webkit-keyframes smoke-move {
  246.     0% {top: 120px; left: 20px}
  247.     20% {top: 107px; left: 25px}
  248.     30% {top: 95px; left: 35px; opacity: 0.9}
  249.     40% {top: 80px; left: 40px; }
  250.     50% {top: 65px; left: 50px; }
  251.     60% {top: 50px; left: 62px; }
  252.     70% {top: 35px; left: 75px; }
  253.     80% {top: 25px; left: 90px; }
  254.     90% {top: 15px; left: 117px; }
  255.     100% {top: 7px; left: 127px; opacity: 0; width: 90px; height: 60px}
  256. }
  257.  
  258. @-webkit-keyframes star-move {
  259.     0% {-webkit-transform: rotate(0rad)}
  260.     100% {-webkit-transform: rotate(10rad)}
  261. }
  262.  
  263. @-webkit-keyframes meteor {
  264.     0% {margin-top: -300px; margin-right: -300px; opacity: 1}
  265.     8% {opacity: 0}
  266.     10% {margin-top: 300px; margin-left: -600px; opacity: 0}
  267.     100% {opacity: 0}
  268. }
  269.     </style>
  270. </head>
  271. <body>
  272. <div class="scene">
  273.     <div class="stars">
  274.         <div class="star"></div>
  275.         <div class="star"></div>
  276.         <div class="star"></div>
  277.         <div class="star"></div>
  278.         <div class="star"></div>
  279.         <div class="star"></div>
  280.         <div class="star"></div>
  281.     </div>
  282.  
  283.     <div class="meteors">
  284.         <div class="meteor"></div>
  285.         <div class="meteor"></div>
  286.         <div class="meteor"></div>
  287.     </div>
  288.  
  289.  
  290.     <div class="ground back-1"></div>
  291.     <div class="ground back-2"></div>
  292.  
  293.     <div class="moon">
  294.         <div class="disk"></div>
  295.     </div>
  296.  
  297.     <div class="house">
  298.  
  299.         <div class="wall">
  300.             <div class="crack"></div>
  301.             <div class="crack"></div>
  302.         </div>
  303.  
  304.         <div class="chimney"></div>
  305.  
  306.         <div class="roof">
  307.             <div class="roof-wall"></div>
  308.         </div>
  309.  
  310.  
  311.         <div class="window">
  312.             <div class="frame"></div>
  313.             <div class="frame"></div>
  314.             <div class="light"></div>
  315.         </div>
  316.     </div>
  317.  
  318.     <div class="smoke-area">
  319.         <div class="smoke"></div>
  320.         <div class="smoke"></div>
  321.         <div class="smoke"></div>
  322.         <div class="smoke"></div>
  323.         <div class="smoke"></div>
  324.         <div class="smoke"></div>
  325.         <div class="smoke"></div>
  326.         <div class="smoke"></div>
  327.     </div>
  328.  
  329.     <div class="ground front"></div>
  330.     <div class="ground front-2"></div>
  331. </div>
  332. </body>
  333. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement