Advertisement
Guest User

Carbon Footprint CSS

a guest
May 27th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 4.01 KB | None | 0 0
  1. * {
  2.     margin: 0;
  3.     padding: 0;
  4.     cursor: url('orange_pointer.cur'), default;
  5. }
  6.  
  7. body {
  8.     width: 100%;
  9.     height: 100%;
  10.     background-image: url(images/stars.jpg);
  11.     background-size: cover;
  12.  
  13. }
  14.  
  15.  
  16. .home {
  17.     padding: 50px;
  18.     position: absolute;
  19.     top: 1%;
  20.     z-index: 100;
  21. }
  22.  
  23. .globe {
  24.     width: 700px;
  25.     position: relative;
  26.     display: block;
  27.     margin-left: auto;
  28.     margin-right: auto;
  29.     animation-name: floating;
  30.     -webkit-animation-name: floating;
  31.     animation-iteration-count: infinite;
  32.     -webkit-animation-iteration-count: infinite;
  33.     animation-timing-function: ease-in-out;
  34.     animation-duration: 10s;
  35.     -webkit-animation-timing-function: ease-in-out;
  36.     cursor: pointer;
  37.    
  38.     }
  39.  
  40. .globe:hover {
  41.   -webkit-animation-name: kettleboil;
  42.   animation-name: kettleboil;
  43.   -webkit-animation-duration: 0.75s;
  44.   animation-duration: 0.75s;
  45.   -webkit-animation-timing-function: linear;
  46.   animation-timing-function: linear;
  47.   -webkit-animation-iteration-count: infinite;
  48.   animation-iteration-count: infinite;
  49.     cursor: pointer !important;
  50. }
  51.    
  52. .globe img {
  53.     cursor: pointer;
  54. }
  55.  
  56.  
  57. .tagline {
  58.     position: relative;
  59.     padding-top: 75px;
  60.     text-align: center;
  61.     font-family: "Luckiest Guy", sans-serif;
  62.     font-size: 37px;
  63.     letter-spacing: 2px;
  64.     color: #f58538;
  65.     margin-top: 65px;
  66. }
  67.  
  68. @keyframes floating {
  69.     0% {
  70.         transform: translate(0%,0%);   
  71.     }
  72.     25% {
  73.         transform: translate(0%,5%);   
  74.     }  
  75.     50% {
  76.         transform: translate(0%,10%);  
  77.     }  
  78.     75% {
  79.         transform: translate(0%,5%);   
  80.     }  
  81.     100% {
  82.         transform: translate(0%,0%);
  83.     }          
  84.  
  85. }
  86.  
  87. @-webkit-keyframes kettleboil {
  88.   10% {
  89.     -webkit-transform: translateX(3px) rotate(2deg);
  90.     transform: translateX(3px) rotate(2deg);
  91.   }
  92.   20% {
  93.     -webkit-transform: translateX(-3px) rotate(-2deg);
  94.     transform: translateX(-3px) rotate(-2deg);
  95.   }
  96.   30% {
  97.     -webkit-transform: translateX(3px) rotate(2deg);
  98.     transform: translateX(3px) rotate(2deg);
  99.   }
  100.   40% {
  101.     -webkit-transform: translateX(-3px) rotate(-2deg);
  102.     transform: translateX(-3px) rotate(-2deg);
  103.   }
  104.   50% {
  105.     -webkit-transform: translateX(2px) rotate(1deg);
  106.     transform: translateX(2px) rotate(1deg);
  107.   }
  108.   60% {
  109.     -webkit-transform: translateX(-2px) rotate(-1deg);
  110.     transform: translateX(-2px) rotate(-1deg);
  111.   }
  112.   70% {
  113.     -webkit-transform: translateX(2px) rotate(1deg);
  114.     transform: translateX(2px) rotate(1deg);
  115.   }
  116.   80% {
  117.     -webkit-transform: translateX(-2px) rotate(-1deg);
  118.     transform: translateX(-2px) rotate(-1deg);
  119.   }
  120.   90% {
  121.     -webkit-transform: translateX(1px) rotate(0);
  122.     transform: translateX(1px) rotate(0);
  123.   }
  124.   100% {
  125.     -webkit-transform: translateX(-1px) rotate(0);
  126.     transform: translateX(-1px) rotate(0);
  127.   }
  128. }
  129. @keyframes kettleboil {
  130.   10% {
  131.     -webkit-transform: translateX(3px) rotate(2deg);
  132.     transform: translateX(3px) rotate(2deg);
  133.   }
  134.   20% {
  135.     -webkit-transform: translateX(-3px) rotate(-2deg);
  136.     transform: translateX(-3px) rotate(-2deg);
  137.   }
  138.   30% {
  139.     -webkit-transform: translateX(3px) rotate(2deg);
  140.     transform: translateX(3px) rotate(2deg);
  141.   }
  142.   40% {
  143.     -webkit-transform: translateX(-3px) rotate(-2deg);
  144.     transform: translateX(-3px) rotate(-2deg);
  145.   }
  146.   50% {
  147.     -webkit-transform: translateX(2px) rotate(1deg);
  148.     transform: translateX(2px) rotate(1deg);
  149.   }
  150.   60% {
  151.     -webkit-transform: translateX(-2px) rotate(-1deg);
  152.     transform: translateX(-2px) rotate(-1deg);
  153.   }
  154.   70% {
  155.     -webkit-transform: translateX(2px) rotate(1deg);
  156.     transform: translateX(2px) rotate(1deg);
  157.   }
  158.   80% {
  159.     -webkit-transform: translateX(-2px) rotate(-1deg);
  160.     transform: translateX(-2px) rotate(-1deg);
  161.   }
  162.   90% {
  163.     -webkit-transform: translateX(1px) rotate(0);
  164.     transform: translateX(1px) rotate(0);
  165.   }
  166.   100% {
  167.     -webkit-transform: translateX(-1px) rotate(0);
  168.     transform: translateX(-1px) rotate(0);
  169.   }
  170. }
  171.  
  172. #boilme {
  173.     width: 120px;
  174.     position: absolute;
  175.     top: 15%;
  176.     left: 75%;
  177.    
  178. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement