123

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.

            
              <head>
  <link href='https://fonts.googleapis.com/css?family=Open+Sans:300' rel='stylesheet' type='text/css'>
</head>
<body>
  <div class="container">
    <div class="bar">
      <progress max="100" value="100"></progress>
      <div class="mask"></div>
    </div>
    <div class="percent">
      <p class="value" id="zero">00</p>
      <p class="value" id="ten">10</p>
      <p class="value" id="twenty">20</p>
      <p class="value" id="thirty">30</p>
      <p class="value" id="fourty">40</p>
      <p class="value" id="fifty">50</p>
      <p class="value" id="sixty">60</p>
      <p class="value" id="seventy">70</p>
      <p class="value" id="eighty">80</p>
      <p class="value" id="ninety">90</p>
      <p class="value" id="hundred">100</p>
    </div>  
  </div>
</body>
            
          
!
            
              body {
  padding: 0;
  margin: 0;
  background: #111;
}
.container {
  display: flex;
  -webkit-display: flex;
  justify-content: center;
  -webkit-justify-content: center;
  margin: 10% auto;
  height: 405px; 
  width: 520px;
}
.bar {
  position: relative;
  top: 12.5%;
  width: 15%;
  height: 75%;
}
progress {
  position: absolute;
  top: 99.5%;
  left: 33%;
  width: 300px;
  height: 25px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: none;
  -webkit-transform: rotate(-90deg);
  -moz-transform: rotate(-90deg);
  -ms-transform: rotate(-90deg);
  -o-transform: rotate(-90deg);
  transform: rotate(-90deg);
  -webkit-transform-origin: top left;
  -moz-transform-origin: top left;
  -ms-transform-origin: top left;
  -o-transform-origin: top left;
  transform-origin: top left;
  box-shadow: -2px 4px 2px 0 #000;
}
progress::-webkit-progress-value {
  background-color: #f1c40f;
}
.mask {
  position: absolute;
  top: 0%;
  left: 33%;
  width: 26px;
  height: 300px; /*decreasing value mimics progress bar rising*/
  background-color: #111;
  -webkit-animation: loading 10s 0.75s linear forwards;
  -moz-animation: loading 10s 0.75s linear forwards;
  -o-animation: loading 10s 0.75s linear forwards;
  animation: loading 10s 0.75s linear forwards;
}
.percent {
  position: relative;
  top: 12.5%;
  width: 85%;
  height: 75%; 
}
.value {
  position: absolute;
  visibility: hidden;
  bottom: -90%;
  left: 3%;
  font-family: 'Open Sans', Helvetica, sans-serif;
  font-size: 16em;
  color: #dedede;
}
.value::after {
  position: absolute;
  top: 35%;
  content: "\0025";
  font-size: 6rem !important; 
}
#zero {
  -webkit-animation: animate0 1s;
  -moz-animation: animate0 1s;
  -o-animation: animate0 1s;
  animation: animate0 1s;
}
#ten {
  -webkit-animation: animate10 1s 1s;
  -moz-animation: animate10 1s 1s;
  -o-animation: animate10 1s 1s;
  animation: animate10 1s 1s;
}
#twenty {
  -webkit-animation: animate20 1s 2s;
  -moz-animation: animate20 1s 2s;
  -o-animation: animate20 1s 2s;
  animation: animate20 1s 2s;
}
#thirty {
  -webkit-animation: animate30 1s 3s;
  -moz-animation: animate30 1s 3s;
  -o-animation: animate30 1s 3s;
  animation: animate30 1s 3s;
}
#fourty {
  -webkit-animation: animate40 1s 4s;
  -moz-animation: animate40 1s 4s;
  -o-animation: animate40 1s 4s;
  animation: animate40 1s 4s;
}
#fifty {
  -webkit-animation: animate10 1s 5s;
  -moz-animation: animate10 1s 5s;
  -o-animation: animate10 1s 5s;
  animation: animate10 1s 5s;
}
#sixty {
  -webkit-animation: animate60 1s 6s;
  -moz-animation: animate60 1s 6s;
  -o-animation: animate60 1s 6s;
  animation: animate60 1s 6s;
}
#seventy {
  -webkit-animation: animate70 1s 7s;
  -moz-animation: animate70 1s 7s;
  -o-animation: animate70 1s 7s;
  animation: animate70 1s 7s;
}
#eighty {
  -webkit-animation: animate80 1s 8s;
  -moz-animation: animate80 1s 8s;
  -o-animation: animate80 1s 8s;
  animation: animate80 1s 8s;
}
#ninety {
  -webkit-animation: animate90 1.5s 9s;
  -moz-animation: animate90 1.5s 9s;
  -o-animation: animate90 1.5s 9s;
  animation: animate90 1.5s 9s;
}
#hundred {
  bottom: -75%;
  left: -5%;
  font-size: 14em;
  -webkit-animation: animate100 1s 10.5s forwards;
  -moz-animation: animate100 1s 10.5s forwards;
  -o-animation: animate100 1s 10.5s forwards;
  animation: animate100 1s 10.5s forwards;
}

/*=========Progress Bar Keyframes===========*/
@-webkit-keyframes loading {
  10%  { height: 90%; }
  20%  { height: 80%; }
  50%  { height: 50%; }
  70%  { height: 30%; }
  100% { height: 0%;  }
}
@-moz-keyframes loading {
  10%  { height: 90%; }
  20%  { height: 80%; }
  50%  { height: 50%; }
  70%  { height: 30%; }
  100% { height: 0%;  }
}
@-o-keyframes loading {
  10%  { height: 90%; }
  20%  { height: 80%; }
  50%  { height: 50%; }
  70%  { height: 30%; }
  100% { height: 0%;  }
}
@keyframes loading {
  10%  { height: 90%; }
  20%  { height: 80%; }
  50%  { height: 50%; }
  70%  { height: 30%; }
  100% { height: 0%;  }
}

/*=========Percentage Keyframes===========*/
@-webkit-keyframes animate0 {
  from { visibility: visible; }
  to   { visibility: hidden;  }
}
@-moz-keyframes animate0 {
  from { visibility: visible; }
  to   { visibility: hidden;  }
}
@-o-keyframes animate0 {
  from { visibility: visible; }
  to   { visibility: hidden;  }
}
@keyframes animate0 {
  from { visibility: visible; }
  to   { visibility: hidden;  }
}

@-webkit-keyframes animate10 {
  from { visibility: hidden;  }
  100% { visibility: visible; }
}
@-moz-keyframes animate10 {
  from { visibility: hidden;  }
  100% { visibility: visible; }
}
@-o-keyframes animate10 {
  from { visibility: hidden;  }
  100% { visibility: visible; }
}
@keyframes animate10 {
  from { visibility: hidden;  }
  100% { visibility: visible; }
}

@-webkit-keyframes animate20 {
  from { visibility: hidden;  }
  100% { visibility: visible; }
}
@-moz-keyframes animate20 {
  from { visibility: hidden;  }
  100% { visibility: visible; }
}
@-o-keyframes animate20 {
  from { visibility: hidden;  }
  100% { visibility: visible; }
}
@keyframes animate20 {
  from { visibility: hidden;  }
  100% { visibility: visible; }
}

@-webkit-keyframes animate30 {
  from { visibility: hidden;  }
  100% { visibility: visible; }
}
@-moz-keyframes animate30 {
  from { visibility: hidden;  }
  100% { visibility: visible; }
}
@-o-keyframes animate30 {
  from { visibility: hidden;  }
  100% { visibility: visible; }
}
@keyframes animate30 {
  from { visibility: hidden;  }
  100% { visibility: visible; }
}

@-webkit-keyframes animate40 {
  from { visibility: hidden;  }
  100% { visibility: visible; }
}
@-moz-keyframes animate40 {
  from { visibility: hidden;  }
  100% { visibility: visible; }
}
@-o-keyframes animate40 {
  from { visibility: hidden;  }
  100% { visibility: visible; }
}
@keyframes animate40 {
  from { visibility: hidden;  }
  100% { visibility: visible; }
}

@-webkit-keyframes animate50 {
  from { visibility: hidden;  }
  100% { visibility: visible; }
}
@-moz-keyframes animate50 {
  from { visibility: hidden;  }
  100% { visibility: visible; }
}
@-o-keyframes animate50 {
  from { visibility: hidden;  }
  100% { visibility: visible; }
}
@keyframes animate50 {
  from { visibility: hidden;  }
  100% { visibility: visible; }
}

@-webkit-keyframes animate60 {
  from { visibility: hidden;  }
  100% { visibility: visible; }
}
@-moz-keyframes animate60 {
  from { visibility: hidden;  }
  100% { visibility: visible; }
}
@-o-keyframes animate60 {
  from { visibility: hidden;  }
  100% { visibility: visible; }
}
@keyframes animate60 {
  from { visibility: hidden;  }
  100% { visibility: visible; }
}

@-webkit-keyframes animate70 {
  from { visibility: hidden;  }
  100% { visibility: visible; }
}
@-moz-keyframes animate70 {
  from { visibility: hidden;  }
  100% { visibility: visible; }
}
@-o-keyframes animate70 {
  from { visibility: hidden;  }
  100% { visibility: visible; }
}
@keyframes animate70 {
  from { visibility: hidden;  }
  100% { visibility: visible; }
}

@-webkit-keyframes animate80 {
  from { visibility: hidden;  }
  100% { visibility: visible; }
}
@-moz-keyframes animate80 {
  from { visibility: hidden;  }
  100% { visibility: visible; }
}
@-o-keyframes animate80 {
  from { visibility: hidden;  }
  100% { visibility: visible; }
}
@keyframes animate80 {
  from { visibility: hidden;  }
  100% { visibility: visible; }
}

@-webkit-keyframes animate90 {
  from { visibility: hidden;  }
  100% { visibility: visible; }
}
@-moz-keyframes animate90 {
  from { visibility: hidden;  }
  100% { visibility: visible; }
}
@-o-keyframes animate90 {
  from { visibility: hidden;  }
  100% { visibility: visible; }
}
@keyframes animate90 {
  from { visibility: hidden;  }
  100% { visibility: visible; }
}

@-webkit-keyframes animate100 {
  from { visibility: hidden;  }
  100% { visibility: visible; }
}
@-moz-keyframes animate100 {
  from { visibility: hidden;  }
  100% { visibility: visible; }
}
@-o-keyframes animate100 {
  from { visibility: hidden;  }
  100% { visibility: visible; }
}
@keyframes animate100 {
  from { visibility: hidden;  }
  100% { visibility: visible; }
}

            
          
!
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