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


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


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.


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.


  <svg viewbox="0 0 660 300" width="100%" height="300px">
    <!-- 11 rectangles-->
    <rect width="60" height="300" x="0%" />
    <rect width="60" height="300" x="10%" />
    <rect width="60" height="300" x="20%" />
    <!--Offset each rectangle on the x axis by 10%-->
    <rect width="60" height="300" x="30%"/>
    <rect width="60" height="300" x="40%"/>
    <rect width="60" height="300" x="50%"/>
    <rect width="60" height="300" x="60%"/>
    <rect width="60" height="300" x="70%"/>
    <rect width="60" height="300" x="80%"/>
    <rect width="60" height="300" x="90%"/>
    <rect width="60" height="300" x="100%"/>
  <h1>Scanning channels</h1>
  <p>This may take a few mintues</p>
  <progress id="file" width="100%" value="32" max="100">32%</progress>


  background: #001C2F;

/*Container for the loading component*/
  display: flex;
  justify-content: space-between;
  margin: 40px auto;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  font-size: 100%;
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  text-align: center;
  color: white;

/*Styling the progress bar*/
progress {
  /*Reset the browser default styling using the apperance property and set the value to none*/
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 20px;
  height: 3vw;
  width: 100%;
  background: #1A3344;
  border: none;

  border-radius: 20px;
  background: linear-gradient(to right, #0eb98f 0%,#4db3ff 100%);

  border-radius: 20px;
  background: #0eb98f;
  background: linear-gradient(to right, #0eb98f 0%,#4db3ff 100%);

  font-size: 4.5vw;
  margin-bottom: 12px;
  margin-top: 40px;

  font-size: 2.8vw;
  margin-top: 0;

/*Loading bars*/
svg rect{
  /*Fill rather than background because it's an SVG graphic*/
  fill: #22B88E;
  animation: scale 2.2s infinite;
  /*To animate it from the center point use the transform-origin proprty*/
  transform-origin: center;

svg rect:nth-child(1){
  /*Delay the animation by 0.2s for each item*/
  animation-delay: 0;
  fill: #1A9F8C

svg rect:nth-child(2){
  animation-delay: 200ms;
  fill: #1EAB8D

svg rect:nth-child(3){
  animation-delay: 400ms;
  fill: #20B38E

svg rect:nth-child(4){
  animation-delay: 600ms;
  fill: #22B78D

svg rect:nth-child(5){
  animation-delay: 800ms;
  fill: #22B88E

svg rect:nth-child(6){
  animation-delay: 1s;
  fill: #21B48D

svg rect:nth-child(7){
  animation-delay: 1.2s;
  fill: #1EAF8E;

svg rect:nth-child(8){
  animation-delay: 1.4s;
  fill: #1CA48D;

svg rect:nth-child(9){
  animation-delay: 1.6s;
  fill: #17968B

svg rect:nth-child(10){
  animation-delay: 1.8s;
  fill: #128688

svg rect:nth-child(11){
  animation-delay: 2s;
  fill: #128688

/*Create the keyframes, set the starting from position, then at 50% is the smallest amount of the rectangle, then return to full size*/
@keyframes scale {
  from {
    transform: scaleY(1);
  50% { 
    transform: scaleY(0.2);