Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
                     <h1>Państwa w których znaleziono najwięcej Meteorytów według <i>lpi.usra.edu</i></h1>
        <h2>Skala porównawcza według Oman-u(100%)</h2>
        <h4>Polska tylko dla porównania</h4>        
        <div class="box-graph">
            
            <div class="numbers">
                <div class="num-polska"></div>
                <div class="num-oman"></div>                
                <div class="num-usa"></div>
                <div class="num-libia"></div>
                <div class="num-maroko"></div>
                <div class="num-antarktyda"></div>
                <div class="num-algeria"></div>
                <div class="num-australia"></div>
                <div class="num-chiny"></div>
                <div class="num-rosja"></div>                                                                                                                                
            </div>
            
            <div class="graph-polska"></div>
            <div class="graph-oman"></div>            
            <div class="graph-usa"></div>
            <div class="graph-libia"></div>
            <div class="graph-maroko"></div>            
            <div class="graph-antarktyda"></div>
            <div class="graph-algeria"></div>                                           <div class="graph-australia"></div>
            <div class="graph-chiny"></div>
            <div class="graph-rosja"></div>                        
            <div class="line-base"></div>            

            <div class="line-polska"></div>
            
            <div class="line-2"></div>
            <div class="line-libia"></div>
            <div class="line-maroko"></div> 
            <div class="line-antarktyda"></div> 
            <div class="line-algeria"></div> 
            <div class="line-australia"></div> 
            <div class="line-chiny"></div> 
            <div class="line-rosja"></div> 
            <div class="line-liba"></div> 
            <div class="line-liba"></div>                                                                                                                         
        </div>
        
            
          
!
            
              @import url("https://fonts.googleapis.com/css?family=Old+Standard+TT:400,400i,700&subset=latin-ext");
body {
  background: #ffcdd2;
}

h1, h2, h4 {
  font-family: 'Old Standard TT', serif;
  text-align: center;
}

.box-graph {
  position: relative;
  margin: auto;
  width: 750px;
  height: 450px;
  opacity: 0.8;
}

.numbers {
  position: absolute;
  left: 100%;
  top: 0;
  width: 3px;
  height: 100%;
  background: darksalmon;
}

.line-base {
  position: absolute;
  height: 1%;
  width: 100%;
  left: 0;
  bottom: 0;
  background-color: darksalmon;
}

.num-polska {
  position: absolute;
  height: 1%;
  bottom: .5%;
  width: 160%;
  left: -25%;
  background-color: cornflowerblue;
}

.num-polska:after {
  position: absolute;
  content: '0.73%';
  left: 10px;
  bottom: -6px;
}

.num-oman {
  position: absolute;
  height: 1%;
  bottom: 99.5%;
  width: 160%;
  left: -25%;
  background-color: cornflowerblue;
}

.num-oman:after {
  position: absolute;
  content: '100%';
  left: 10px;
  bottom: -6px;
}

.num-usa {
  position: absolute;
  height: 1%;
  bottom: 50.8%;
  width: 160%;
  left: -25%;
  background-color: cornflowerblue;
}

.num-usa:after {
  position: absolute;
  content: '51.44%';
  left: 10px;
  bottom: -6px;
}

.num-libia {
  position: absolute;
  height: 1%;
  bottom: 35.38%;
  width: 160%;
  left: -25%;
  background-color: cornflowerblue;
}

.num-libia:after {
  position: absolute;
  content: '35,68%';
  left: 10px;
  bottom: -6px;
}

.num-maroko {
  position: absolute;
  height: 1%;
  bottom: 30%;
  width: 160%;
  left: -25%;
  background-color: cornflowerblue;
}

.num-maroko:after {
  position: absolute;
  content: '30,3%';
  left: 10px;
  bottom: -6px;
}

.num-antarktyda {
  position: absolute;
  height: 1%;
  bottom: 19.7%;
  width: 160%;
  left: -25%;
  background-color: cornflowerblue;
}

.num-antarktyda:after {
  position: absolute;
  content: '20,09%';
  left: 10px;
  bottom: -1px;
}

.num-algeria {
  position: absolute;
  height: 1%;
  bottom: 18%;
  width: 160%;
  left: -25%;
  background-color: cornflowerblue;
}

.num-algeria:after {
  position: absolute;
  content: '18,27%';
  left: 10px;
  bottom: -7px;
}

.num-australia {
  position: absolute;
  height: 1%;
  bottom: 16.5%;
  width: 160%;
  left: -25%;
  background-color: cornflowerblue;
}

.num-australia:after {
  position: absolute;
  content: '17,89%';
  left: 10px;
  bottom: -14px;
}

.num-chiny {
  position: absolute;
  height: 1%;
  bottom: 5.4%;
  width: 160%;
  left: -25%;
  background-color: cornflowerblue;
}

.num-chiny:after {
  position: absolute;
  content: '5,87%';
  left: 10px;
  bottom: -1px;
}

.num-rosja {
  position: absolute;
  height: 1%;
  bottom: 3.95%;
  width: 160%;
  left: -25%;
  background-color: cornflowerblue;
}

.num-rosja:after {
  position: absolute;
  content: '3.95%';
  left: 10px;
  bottom: -8px;
}

.graph-polska {
  position: absolute;
  width: 4%;
  left: 5%;
  bottom: 0;
  background: -webkit-gradient(linear, left top, left bottom, from(rgba(128, 222, 234, 0.6)), to(rgba(224, 247, 250, 0.6)));
  background: linear-gradient(180deg, rgba(128, 222, 234, 0.6) 0%, rgba(224, 247, 250, 0.6) 100%);
  -webkit-animation: graph-1 4s infinite;
          animation: graph-1 4s infinite;
}

.line-polska {
  position: absolute;
  height: 1px;
  width: 92%;
  bottom: 1%;
  right: 0;
  background-color: fuchsia;
}

.graph-polska:after {
  position: absolute;
  content: 'Polska';
  font-weight: bold;
  bottom: -20px;
}

.graph-polska:before {
  position: absolute;
  content: '31 Meteorites';
  font-weight: bold;
  bottom: -80px;
  left: -20px;
  white-space: nowrap;
  -webkit-transform: rotatez(90deg);
          transform: rotatez(90deg);
}

.graph-oman {
  position: absolute;
  width: 4%;
  left: 95%;
  bottom: 0;
  background: -webkit-gradient(linear, left bottom, left top, color-stop(10%, #FD6F46), color-stop(90%, #FB9832));
  background: linear-gradient(0deg, #FD6F46 10%, #FB9832 90%);
  -webkit-animation: graph-oman 20s infinite;
          animation: graph-oman 20s infinite;
  -webkit-animation-fill-mode: both;
          animation-fill-mode: both;
}

.graph-oman:after {
  position: absolute;
  content: 'Oman';
  color: #FB9832;
  font-weight: bold;
  bottom: -20px;
}

.graph-oman:before {
  position: absolute;
  content: '4220 Meteorites';
  font-weight: bold;
  color: #FB9832;
  bottom: -90px;
  left: -30px;
  white-space: nowrap;
  -webkit-transform: rotatez(90deg);
          transform: rotatez(90deg);
}

.graph-usa {
  position: absolute;
  width: 4%;
  left: 85%;
  bottom: 0;
  background: -webkit-gradient(linear, left top, right top, color-stop(10%, #8e7a3f), color-stop(90%, #b09a51));
  background: linear-gradient(90deg, #8e7a3f 10%, #b09a51 90%);
  -webkit-animation: graph-2 20s infinite;
          animation: graph-2 20s infinite;
  -webkit-animation-delay: 1s;
          animation-delay: 1s;
}

.graph-usa:after {
  position: absolute;
  content: 'Usa';
  font-weight: bold;
  bottom: -20px;
  color: #b09a51;
}

.graph-usa:before {
  position: absolute;
  content: '2171 Meteorites';
  font-weight: bold;
  bottom: -90px;
  left: -40px;
  white-space: nowrap;
  -webkit-transform: rotatez(90deg);
          transform: rotatez(90deg);
  color: #b09a51;
}

.graph-libia {
  position: absolute;
  width: 4%;
  left: 75%;
  bottom: 0;
  background: -webkit-gradient(linear, left top, right top, color-stop(10%, #b6eae1), color-stop(90%, #D2FBAD));
  background: linear-gradient(90deg, #b6eae1 10%, #D2FBAD 90%);
  -webkit-animation: graph-libia 20s infinite;
          animation: graph-libia 20s infinite;
  -webkit-animation-delay: 2s;
          animation-delay: 2s;
}

.graph-libia:after {
  position: absolute;
  content: 'Libia';
  font-weight: bold;
  color: yellowgreen;
  bottom: -20px;
}

.graph-libia:before {
  position: absolute;
  content: '1506 Meteorites';
  font-weight: bold;
  color: yellowgreen;
  bottom: -90px;
  left: -30px;
  white-space: nowrap;
  -webkit-transform: rotatez(90deg);
          transform: rotatez(90deg);
}

.graph-maroko {
  position: absolute;
  width: 4%;
  left: 65%;
  bottom: 0;
  background: -webkit-gradient(linear, left top, right top, color-stop(10%, #d64759), color-stop(90%, #da7352));
  background: linear-gradient(90deg, #d64759 10%, #da7352 90%);
  -webkit-animation: graph-maroko 20s infinite;
          animation: graph-maroko 20s infinite;
  -webkit-animation-delay: 3s;
          animation-delay: 3s;
}

.graph-maroko:after {
  position: absolute;
  content: 'Maroko';
  font-weight: bold;
  color: #da7352;
  bottom: -20px;
}

.graph-maroko:before {
  position: absolute;
  content: '1279 Meteorites';
  font-weight: bold;
  color: #da7352;
  bottom: -90px;
  left: -30px;
  white-space: nowrap;
  -webkit-transform: rotatez(90deg);
          transform: rotatez(90deg);
}

.graph-antarktyda {
  position: absolute;
  width: 4%;
  left: 55%;
  bottom: 0;
  background: -webkit-gradient(linear, left top, right top, color-stop(10%, #e9fbcf), color-stop(90%, #1d7d8e));
  background: linear-gradient(90deg, #e9fbcf 10%, #1d7d8e 90%);
  -webkit-animation: graph-antarktyda 20s infinite;
          animation: graph-antarktyda 20s infinite;
  -webkit-animation-delay: 4s;
          animation-delay: 4s;
}

.graph-antarktyda:after {
  position: absolute;
  content: 'Antarktyda';
  font-weight: bold;
  color: #1d7d8e;
  bottom: -20px;
  left: -12px;
}

.graph-antarktyda:before {
  position: absolute;
  content: '848 Meteorites';
  font-weight: bold;
  color: #1d7d8e;
  bottom: -90px;
  left: -30px;
  white-space: nowrap;
  -webkit-transform: rotatez(90deg);
          transform: rotatez(90deg);
}

.graph-algeria {
  position: absolute;
  width: 4%;
  left: 45%;
  bottom: 0;
  background: -webkit-gradient(linear, left top, right top, color-stop(10%, #949494), color-stop(90%, #efefef));
  background: linear-gradient(90deg, #949494 10%, #efefef 90%);
  -webkit-animation: graph-algeria 20s infinite;
          animation: graph-algeria 20s infinite;
  -webkit-animation-delay: 5s;
          animation-delay: 5s;
}

.graph-algeria:after {
  position: absolute;
  content: 'Algeria';
  font-weight: bold;
  color: #949494;
  bottom: -20px;
}

.graph-algeria:before {
  position: absolute;
  content: '771 Meteorites';
  font-weight: bold;
  color: #949494;
  bottom: -90px;
  left: -30px;
  white-space: nowrap;
  -webkit-transform: rotatez(90deg);
          transform: rotatez(90deg);
}

.graph-australia {
  position: absolute;
  width: 4%;
  left: 35%;
  bottom: 0;
  background: -webkit-gradient(linear, left top, right top, color-stop(10%, #99D22B), color-stop(90%, #FBFF00));
  background: linear-gradient(90deg, #99D22B 10%, #FBFF00 90%);
  -webkit-animation: graph-australia 20s infinite;
          animation: graph-australia 20s infinite;
  -webkit-animation-delay: 6s;
          animation-delay: 6s;
}

.graph-australia:after {
  position: absolute;
  content: 'Australia';
  font-weight: bold;
  color: #99D22B;
  bottom: -20px;
}

.graph-australia:before {
  position: absolute;
  content: '755 Meteorites';
  font-weight: bold;
  color: #99D22B;
  bottom: -90px;
  left: -20px;
  white-space: nowrap;
  -webkit-transform: rotatez(90deg);
          transform: rotatez(90deg);
}

.graph-chiny {
  position: absolute;
  width: 4%;
  left: 25%;
  bottom: 0;
  background: -webkit-gradient(linear, left top, right top, color-stop(10%, #b6eae1), color-stop(90%, #D2FBAD));
  background: linear-gradient(90deg, #b6eae1 10%, #D2FBAD 90%);
  -webkit-animation: graph-chiny 20s infinite;
          animation: graph-chiny 20s infinite;
  -webkit-animation-delay: 7s;
          animation-delay: 7s;
}

.graph-chiny:after {
  position: absolute;
  content: 'Chiny=Iran';
  font-weight: bold;
  color: #b6eae1;
  bottom: -20px;
  left: -12px;
}

.graph-chiny:before {
  position: absolute;
  content: 'ok 250 Meteorites';
  font-weight: bold;
  color: #b6eae1;
  bottom: -100px;
  left: -30px;
  white-space: nowrap;
  -webkit-transform: rotatez(90deg);
          transform: rotatez(90deg);
}

.graph-rosja {
  position: absolute;
  width: 4%;
  left: 15%;
  bottom: 0;
  background: -webkit-gradient(linear, left top, right top, color-stop(10%, #383836), color-stop(90%, #4a4a4a));
  background: linear-gradient(90deg, #383836 10%, #4a4a4a 90%);
  -webkit-animation: graph-rosja 20s infinite;
          animation: graph-rosja 20s infinite;
  -webkit-animation-delay: 8s;
          animation-delay: 8s;
}

.graph-rosja:after {
  position: absolute;
  content: 'Rosja';
  font-weight: bold;
  color: #383836;
  bottom: -20px;
}

.graph-rosja:before {
  position: absolute;
  content: '167 Meteorites';
  font-weight: bold;
  color: #383836;
  bottom: -90px;
  left: -30px;
  white-space: nowrap;
  -webkit-transform: rotatez(90deg);
          transform: rotatez(90deg);
}

.line-2 {
  position: absolute;
  height: 1px;
  bottom: 51.1%;
  right: 0;
  background-color: fuchsia;
  -webkit-animation: line2 20s infinite;
          animation: line2 20s infinite;
  -webkit-animation-delay: 1s;
          animation-delay: 1s;
}

.line-libia {
  position: absolute;
  height: 1px;
  bottom: 35.68%;
  right: 0;
  background-color: fuchsia;
  -webkit-animation: libia 20s infinite;
          animation: libia 20s infinite;
  -webkit-animation-delay: 2s;
          animation-delay: 2s;
}

.line-maroko {
  position: absolute;
  height: 1px;
  bottom: 30.3%;
  right: 0;
  background-color: fuchsia;
  -webkit-animation: maroko 20s infinite;
          animation: maroko 20s infinite;
  -webkit-animation-delay: 3s;
          animation-delay: 3s;
}

.line-antarktyda {
  position: absolute;
  height: 1px;
  bottom: 20.09%;
  right: 0;
  background-color: fuchsia;
  -webkit-animation: antarktyda 20s infinite;
          animation: antarktyda 20s infinite;
  -webkit-animation-delay: 4s;
          animation-delay: 4s;
}

.line-algeria {
  position: absolute;
  height: 1px;
  bottom: 18.27%;
  right: 0;
  background-color: fuchsia;
  -webkit-animation: algeria 20s infinite;
          animation: algeria 20s infinite;
  -webkit-animation-delay: 5s;
          animation-delay: 5s;
}

.line-australia {
  position: absolute;
  height: 1px;
  bottom: 17%;
  right: 0;
  background-color: fuchsia;
  -webkit-animation: australia 20s infinite;
          animation: australia 20s infinite;
  -webkit-animation-delay: 6s;
          animation-delay: 6s;
}

.line-chiny {
  position: absolute;
  height: 1px;
  bottom: 5.87%;
  right: 0;
  background-color: fuchsia;
  -webkit-animation: chiny 20s infinite;
          animation: chiny 20s infinite;
  -webkit-animation-delay: 7s;
          animation-delay: 7s;
}

.line-rosja {
  position: absolute;
  height: 1px;
  bottom: 3.95%;
  right: 0;
  background-color: fuchsia;
  -webkit-animation: rosja 20s infinite;
          animation: rosja 20s infinite;
  -webkit-animation-delay: 8s;
          animation-delay: 8s;
}

@-webkit-keyframes graph-2 {
  0% {
    height: 0;
  }
  5% {
    height: 51.3%;
  }
  20% {
    height: 51.3%;
  }
  100% {
    height: 0;
  }
}

@keyframes graph-2 {
  0% {
    height: 0;
  }
  5% {
    height: 51.3%;
  }
  20% {
    height: 51.3%;
  }
  100% {
    height: 0;
  }
}

@-webkit-keyframes graph-oman {
  0% {
    height: 0;
  }
  5% {
    height: 100%;
  }
  30% {
    height: 100%;
  }
  100% {
    height: 0;
  }
}

@keyframes graph-oman {
  0% {
    height: 0;
  }
  5% {
    height: 100%;
  }
  30% {
    height: 100%;
  }
  100% {
    height: 0;
  }
}

@-webkit-keyframes graph-libia {
  0% {
    height: 0;
  }
  5% {
    height: 35.68%;
  }
  40% {
    height: 35.68%;
  }
  100% {
    height: 0;
  }
}

@keyframes graph-libia {
  0% {
    height: 0;
  }
  5% {
    height: 35.68%;
  }
  40% {
    height: 35.68%;
  }
  100% {
    height: 0;
  }
}

@-webkit-keyframes graph-maroko {
  0% {
    height: 0;
  }
  5% {
    height: 30.3%;
  }
  50% {
    height: 30.3%;
  }
  100% {
    height: 0;
  }
}

@keyframes graph-maroko {
  0% {
    height: 0;
  }
  5% {
    height: 30.3%;
  }
  50% {
    height: 30.3%;
  }
  100% {
    height: 0;
  }
}

@-webkit-keyframes graph-antarktyda {
  0% {
    height: 0;
  }
  5% {
    height: 20.09%;
  }
  60% {
    height: 20.09%;
  }
  100% {
    height: 0;
  }
}

@keyframes graph-antarktyda {
  0% {
    height: 0;
  }
  5% {
    height: 20.09%;
  }
  60% {
    height: 20.09%;
  }
  100% {
    height: 0;
  }
}

@-webkit-keyframes graph-algeria {
  0% {
    height: 0;
  }
  5% {
    height: 18.27%;
  }
  70% {
    height: 18.27%;
  }
  100% {
    height: 0;
  }
}

@keyframes graph-algeria {
  0% {
    height: 0;
  }
  5% {
    height: 18.27%;
  }
  70% {
    height: 18.27%;
  }
  100% {
    height: 0;
  }
}

@-webkit-keyframes graph-australia {
  0% {
    height: 0;
  }
  5% {
    height: 17%;
  }
  80% {
    height: 17%;
  }
  100% {
    height: 0;
  }
}

@keyframes graph-australia {
  0% {
    height: 0;
  }
  5% {
    height: 17%;
  }
  80% {
    height: 17%;
  }
  100% {
    height: 0;
  }
}

@-webkit-keyframes graph-chiny {
  0% {
    height: 0;
  }
  5% {
    height: 5.87%;
  }
  90% {
    height: 5.87%;
  }
  100% {
    height: 0;
  }
}

@keyframes graph-chiny {
  0% {
    height: 0;
  }
  5% {
    height: 5.87%;
  }
  90% {
    height: 5.87%;
  }
  100% {
    height: 0;
  }
}

@-webkit-keyframes graph-rosja {
  0% {
    height: 0;
  }
  5% {
    height: 3.95%;
  }
  95% {
    height: 3.95%;
  }
  100% {
    height: 0;
  }
}

@keyframes graph-rosja {
  0% {
    height: 0;
  }
  5% {
    height: 3.95%;
  }
  95% {
    height: 3.95%;
  }
  100% {
    height: 0;
  }
}

@-webkit-keyframes line2 {
  0% {
    width: 0;
  }
  5% {
    width: 12%;
  }
  20% {
    width: 12%;
  }
  100% {
    width: 0;
  }
}

@keyframes line2 {
  0% {
    width: 0;
  }
  5% {
    width: 12%;
  }
  20% {
    width: 12%;
  }
  100% {
    width: 0;
  }
}

@-webkit-keyframes libia {
  0% {
    width: 0;
  }
  5% {
    width: 22%;
  }
  40% {
    width: 22%;
  }
  100% {
    width: 0;
  }
}

@keyframes libia {
  0% {
    width: 0;
  }
  5% {
    width: 22%;
  }
  40% {
    width: 22%;
  }
  100% {
    width: 0;
  }
}

@-webkit-keyframes maroko {
  0% {
    width: 0;
  }
  5% {
    width: 32%;
  }
  50% {
    width: 32%;
  }
  100% {
    width: 0;
  }
}

@keyframes maroko {
  0% {
    width: 0;
  }
  5% {
    width: 32%;
  }
  50% {
    width: 32%;
  }
  100% {
    width: 0;
  }
}

@-webkit-keyframes antarktyda {
  0% {
    width: 0;
  }
  5% {
    width: 42%;
  }
  60% {
    width: 42%;
  }
  100% {
    width: 0;
  }
}

@keyframes antarktyda {
  0% {
    width: 0;
  }
  5% {
    width: 42%;
  }
  60% {
    width: 42%;
  }
  100% {
    width: 0;
  }
}

@-webkit-keyframes algeria {
  0% {
    width: 0;
  }
  5% {
    width: 52%;
  }
  70% {
    width: 52%;
  }
  100% {
    width: 0;
  }
}

@keyframes algeria {
  0% {
    width: 0;
  }
  5% {
    width: 52%;
  }
  70% {
    width: 52%;
  }
  100% {
    width: 0;
  }
}

@-webkit-keyframes australia {
  0% {
    width: 0;
  }
  5% {
    width: 62%;
  }
  80% {
    width: 62%;
  }
  100% {
    width: 0;
  }
}

@keyframes australia {
  0% {
    width: 0;
  }
  5% {
    width: 62%;
  }
  80% {
    width: 62%;
  }
  100% {
    width: 0;
  }
}

@-webkit-keyframes chiny {
  0% {
    width: 0;
  }
  5% {
    width: 72%;
  }
  90% {
    width: 72%;
  }
  100% {
    width: 0;
  }
}

@keyframes chiny {
  0% {
    width: 0;
  }
  5% {
    width: 72%;
  }
  90% {
    width: 72%;
  }
  100% {
    width: 0;
  }
}

@-webkit-keyframes rosja {
  0% {
    width: 0;
  }
  5% {
    width: 82%;
  }
  95% {
    width: 82%;
  }
  100% {
    width: 0;
  }
}

@keyframes rosja {
  0% {
    width: 0;
  }
  5% {
    width: 82%;
  }
  95% {
    width: 82%;
  }
  100% {
    width: 0;
  }
}

            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console