Pen Settings

HTML

CSS

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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

Behavior

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.

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

              
                <section class="usa-section">
  <div class="grid-container">
    <div class="grid-row grid-gap">
      <article class="tablet-lg:grid-col-12">
           <h2>Striped with border radius</h2>
        <div class="progress radius-md">
          <div class="progress__bar progress__bar--striped bg-primary  text-middle" style="width:60%"><span class="text-tabular text-white text-bold">60% Complete</span></div>
          <div class="progress__bar bg-primary-light" style="width:40%"><span class="text-tabular text-bold no-shadow ">40% Incomplete</span></div>
        </div>
        <h2>Striped with barber pole animation and border radius</h2>
              <p>This has some limitation on smaller screens or in smaller columns. Future enhancements would include a more responsive solution and possibly additional animation.</p>
             <div class="progress radius-lg shadow-2 margin-top-4 ">
                <div class="progress__bar progress__bar--striped progress__bar--animated bg-primary  text-middle" style="width:60%"><span class="text-tabular text-white text-bold">60% Complete</span></div>
                <div class="progress__bar bg-accent-warm-dark progress__bar--striped   progress__bar--animated" style="width:20%"><span class="text-tabular text-white text-bold ">20% Partial</span></div>
                <div class="progress__bar bg-secondary-lighter" style="width:20%"><span class="text-tabular text-bold ">20% Incomplete</span></div>
              </div>
      </article>
    </div>
  </div>
</section>
              
            
!

CSS

              
                .progress {
  display: inline-block;
  vertical-align: baseline;
}

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

@-o-keyframes progress-bar-stripes {
  from {
    background-position: 1rem 0;
  }
  to {
    background-position: 0 0;
  }
}

@keyframes progress-bar-stripes {
  from {
    background-position: 1rem 0;
  }
  to {
    background-position: 0 0;
  }
}

.progress {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.8rem;
  text-align: center;
  background-color: color('base-lightest');
}

.progress__bar {
  height: 2rem;
  padding: 0 4px;
}

.progress__bar span {
  padding: 2px;
  display: inline-block;
  overflow: hidden;
  text-shadow: 0 1px 1px rgba(color('ink'), .25);

}

.progress-bar span.no-shadow {
  text-shadow:none;
}

.progress__bar--striped {
  background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  -webkit-background-size: 1rem 1rem;
  background-size: 1rem 1rem;
}

.progress__bar--animated {
  -webkit-animation: progress-bar-stripes 1s linear infinite;
  -o-animation: progress-bar-stripes 1s linear infinite;
  animation: progress-bar-stripes 1s linear infinite;
}
              
            
!

JS

              
                
              
            
!
999px

Console