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

              
                <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">

<div class="row">
  <div class="col-xs-12 text-center loader-container">
    <?xml version="1.0" encoding="UTF-8"?>
      <?xml version="1.0" encoding="UTF-8"?>
<svg width="400px" height="165px" viewBox="0 0 400 165" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
    <!-- Generator: Sketch 43.2 (39069) - http://www.bohemiancoding.com/sketch -->
    <title>Artboard</title>
    <desc>Created with Sketch.</desc>
    <defs></defs>
    <g id="coding" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
        <g id="Artboard">
            <g id="group1">
                <g id="line1">
                    <rect id="dash-1" fill="#F92672" x="0" y="0" width="40" height="20" rx="10"></rect>
                    <rect id="dash-2" fill="#A6E22E" x="43" y="0" width="60" height="20" rx="10"></rect>
                    <rect id="dash-3" fill="#FFE792" x="106" y="0" width="100" height="20" rx="10"></rect>
                    <rect id="dash-4" fill="#FFE792" x="209" y="0" width="70" height="20" rx="10"></rect>
                </g>
                <g id="line2" transform="translate(30.000000, 27.000000)">
                    <rect id="dash-1" fill="#F92672" x="0" y="0" width="40" height="20" rx="10"></rect>
                    <rect id="dash-2" fill="#A6E22E" x="43" y="0" width="60" height="20" rx="10"></rect>
                    <rect id="dash-3" fill="#FFE792" x="106" y="0" width="80" height="20" rx="10"></rect>
                </g>
                <rect id="line6" fill="#F92672" x="0" y="135" width="40" height="20" rx="10"></rect>
                <rect id="line3" fill="#F8F8F2" x="60" y="54" width="290" height="20" rx="10"></rect>
                <rect id="line4" fill="#F8F8F2" x="60" y="81" width="225" height="20" rx="10"></rect>
                <rect id="line5" fill="#F92672" x="30" y="108" width="40" height="20" rx="10"></rect>
            </g>
          <g id="group2">
                <g id="line1">
                    <rect id="dash-1" fill="#F92672" x="0" y="0" width="40" height="20" rx="10"></rect>
                    <rect id="dash-2" fill="#A6E22E" x="43" y="0" width="60" height="20" rx="10"></rect>
                    <rect id="dash-3" fill="#FFE792" x="106" y="0" width="100" height="20" rx="10"></rect>
                    <rect id="dash-4" fill="#FFE792" x="209" y="0" width="70" height="20" rx="10"></rect>
                </g>
                <g id="line2" transform="translate(30.000000, 27.000000)">
                    <rect id="dash-1" fill="#F92672" x="0" y="0" width="40" height="20" rx="10"></rect>
                    <rect id="dash-2" fill="#A6E22E" x="43" y="0" width="60" height="20" rx="10"></rect>
                    <rect id="dash-3" fill="#FFE792" x="106" y="0" width="80" height="20" rx="10"></rect>
                </g>
                <rect id="line6" fill="#F92672" x="0" y="135" width="40" height="20" rx="10"></rect>
                <rect id="line3" fill="#F8F8F2" x="60" y="54" width="290" height="20" rx="10"></rect>
                <rect id="line4" fill="#F8F8F2" x="60" y="81" width="225" height="20" rx="10"></rect>
                <rect id="line5" fill="#F92672" x="30" y="108" width="40" height="20" rx="10"></rect>
            </g>
        </g>
    </g>
</svg>
  </div>
</div>

              
            
!

CSS

              
                /* Housekeeping CSS */
body {
  background: #272822 !important;
}

.loader-container {
  margin:auto;
  margin-top:25vh;
  overflow:hidden;
}

/* 
Hiding the rect on page load 
And add the "expand" animation
*/
rect {
  opacity:0;
  animation: expand 0.2s forwards;
}
/* End of housekeeping css */xs

/* Delays to subsequent "dashes" */
#line1 #dash-2 {
  animation-delay:0.1s;
}

#line1 #dash-3 {
  animation-delay:0.2s;
}

#line1 #dash-4 {
  animation-delay:0.3s;
}

#line2 #dash-1 {
  animation-delay:0.4s;
}

#line2 #dash-2 {
  animation-delay:0.5s;
}

#line2 #dash-3 {
  animation-delay:0.6s;
}

#line3 {
  animation-delay:0.7s;
}

#line4 {
  animation-delay:.8s;
}

#line5 {
  animation-delay:0.9s;
}

#line6 {
  animation-delay:1s;
}

@keyframes expand {
  0% { opacity: 1; width: 0}
  100% { opacity: 1; width: 1 }
}

#group1 {
  animation: scroll 1s linear infinite;
  animation-delay: 1s;
}

@keyframes scroll {
  0% {transform: translateY(initial)}
  100% {transform: translateY(-165px)}
}

#group2 {
  transform: translateY(165px);
  animation: scroll2 1s linear infinite;
  animation-delay: 1s
}

@keyframes scroll2 {
  0% {transform: translateY(165px)}
  100% {transform: translateY(0px)}
}

/*Start of the painful CSS...*/

#group2 #line1 #dash-1 {
  animation: line1dash1 1s linear infinite;
  opacity:1;
}

@keyframes line1dash1 {
  0% {width: 0}
  20% {width: 40px}
  100% {width: 40px} /* <-- 20% and 100% are the same, giving us that "delayed effect*/
}

#group2 #line1 #dash-2 {
  animation: line1dash2 1s linear infinite;
  opacity:1;
}

@keyframes line1dash2 {
  0% {width: 0px;}
  10% { width: 0px;} /*<-- we start the second dash at 10% instead of the 0% above */
  30% { width: 60px;}
  100% { width: 60px;}
}

#group2 #line1 #dash-3 {
  animation: line1dash3 1s linear infinite;
  opacity:1;
}

@keyframes line1dash3 {
  0% {width: 0px;}
  20% { width: 0px;}
  40% { width: 100px;}
  100% { width: 100px;}
}


#group2 #line1 #dash-4 {
  animation: line1dash4 1s linear infinite;
  opacity:1;
}

@keyframes line1dash4 {
  0% {width: 0px;}
  35% { width: 0px;}
  50% { width: 70px;}
  100% { width: 70px;}
}


#group2 #line2 #dash-1 {
  animation: line2dash1 1s linear infinite;
  opacity:1;
}

@keyframes line2dash1 {
  0% {width: 0px;}
  40% { width: 0px;}
  60% { width: 40px;}
  100% { width: 40px;}
}

#group2 #line2 #dash-2 {
  animation: line2dash2 1s linear infinite;
  opacity:1;
}

@keyframes line2dash2 {
  0% {width: 0px;}
  50% { width: 0px;}
  70% { width: 60px;}
  100% { width: 60px;}
}

#group2 #line2 #dash-3 {
  animation: line2dash3 1s linear infinite;
  opacity:1;
}

@keyframes line2dash3 {
  0% {width: 0px;}
  60% { width: 0px;}
  80% { width: 80px;}
  100% { width: 80px;}
}

#group2 #line3 {
  animation: line3 1s linear infinite;
  opacity:1;
}

@keyframes line3 {
  0% {width: 0px;}
  65% { width: 0px;}
  85% { width: 290px;}
  100% { width: 290px;}
}

#group2 #line4 {
  animation: line4 1s linear infinite;
  opacity:1;
}

@keyframes line4 {
  0% {width: 0px;}
  70% { width: 0px;}
  90% { width: 225px;}
  100% { width: 225px;}
}

#group2 #line5 {
  animation: line5 1s linear infinite;
  opacity:1;
}

@keyframes line5 {
  0% {width: 0px;}
  80% { width: 0px;}
  95% { width: 40px;}
  100% { width: 40px;}
}

#group2 #line6 {
  animation: line6 1s linear infinite;
  opacity:1;
}

@keyframes line6 {
  0% {width: 0px;}
  85% { width: 0px;}
  100% { width: 40px;}
}
              
            
!

JS

              
                
              
            
!
999px

Console