Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <div class="demo-preview">
  <div class="progress progress-striped active">
      <div role="progressbar progress-striped" style="width: 95%;" class="progress-bar"><span>Primary</span></div>
    </div>
    <div class="progress progress-striped active">
      <div role="progressbar " style="width: 90%;" class="progress-bar progress-bar-secondary"><span>Secondary</span></div>
    </div>
    <div class="progress progress-striped active">
      <div role="progressbar " style="width: 80%;" class="progress-bar progress-bar-default"><span>Default</span></div>
    </div>
    <div class="progress progress-striped active">
      <div role="progressbar " style="width: 70%;" class="progress-bar progress-bar-success"><span>Success</span></div>
    </div>
    <div class="progress progress-striped active">
      <div role="progressbar " style="width: 60%;" class="progress-bar progress-bar-info"><span>Info</span></div>
    </div>
    <div class="progress progress-striped active">
      <div role="progressbar " style="width: 50%;" class="progress-bar progress-bar-warning"><span>Warning</span></div>
    </div>
    <div class="progress progress-striped active">
      <div role="progressbar" style="width: 40%;" class="progress-bar progress-bar-danger"><span>Danger</span></div>
    </div>
</div>
              
            
!

CSS

              
                .demo-preview {
  padding-top: 100px;
  padding-bottom: 10px;
  margin: auto;
  width:50%;
  text-align: center;
}
$brand-default: #B0BEC5;
$brand-primary: #2196F3;
$brand-secondary: #323a45;
$brand-success: #64DD17;
$brand-warning: #FFD600;
$brand-info:  #29B6F6;
$brand-danger: #ef1c1c;
$bg-light-gray: #f5f5f5;
.progress {
  background-color: $bg-light-gray;
  border-radius: 3px;
  box-shadow:none;
  &.progress-xs {
    height: 5px;
    margin-top: 5px;
  }
  &.progress-sm {
    height: 10px;
    margin-top: 5px;
  }
  &.progress-lg {
    height: 25px;
  }
  &.vertical {
    position: relative;
    width: 20px;
    height: 200px;
    display: inline-block;
    margin-right: 10px;
    > .progress-bar {
      width: 100%!important;
      position: absolute;
      bottom: 0;
    }
    &.progress-xs {
      width: 5px;
      margin-top: 5px;
    }
    &.progress-sm {
      width: 10px;
      margin-top: 5px;
    }
    &.progress-lg {
      width: 30px;
    }
  }
}

.progress-bar {
  background-color: $brand-primary;
  box-shadow:none;
  &.text-left{
    text-align: left;
    span{
      margin-left: 10px;
    }
  }
  &.text-right{
    text-align: right;
    span{
      margin-right: 10px;
    }
  }
}
@mixin gradient-striped($color: rgba(255,255,255,.15), $angle: 45deg) {
  background-image: -webkit-linear-gradient($angle, $color 25%, transparent 25%, transparent 50%, $color 50%, $color 75%, transparent 75%, transparent);
  background-image: -o-linear-gradient($angle, $color 25%, transparent 25%, transparent 50%, $color 50%, $color 75%, transparent 75%, transparent);
  background-image: linear-gradient($angle, $color 25%, transparent 25%, transparent 50%, $color 50%, $color 75%, transparent 75%, transparent);
}

@-webkit-keyframes progress-bar-stripes {
  from  { background-position: 40px 0; }
  to    { background-position: 0 0; }
}

// Spec and IE10+
@keyframes progress-bar-stripes {
  from  { background-position: 40px 0; }
  to    { background-position: 0 0; }
}

@mixin animation($animation) {
  -webkit-animation: $animation;
       -o-animation: $animation;
          animation: $animation;
}
.progress.active .progress-bar,
.progress-bar.active {
  @include animation(progress-bar-stripes 2s linear infinite);
}
.progress-striped .progress-bar,
.progress-bar-striped {
  @include gradient-striped;
  background-size: 40px 40px;
}
@mixin progress-bar-variant($color) {
  background-color: $color;
}

.progress-bar-secondary {
  @include progress-bar-variant($brand-secondary);
}

.progress-bar-default {
   @include progress-bar-variant($brand-default);
}



.progress-bar-success {
   @include progress-bar-variant($brand-success);
}

.progress-bar-info {
   @include progress-bar-variant($brand-info);
}

.progress-bar-warning {
   @include progress-bar-variant($brand-warning);
}

.progress-bar-danger {
   @include progress-bar-variant($brand-danger);
}

              
            
!

JS

              
                
              
            
!
999px

Console