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 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.

HTML

              
                <div class="container">
  <div class="svg-container m">
    <svg width="300px" height="300px" viewBox="0 0 300 300" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
      <g id="Artboard" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">

        <path d="M125.995,102.508 L174.696,102.508 L174.696,197.492 L125.995,197.492 L125.995,102.508 Z" id="Path-2" stroke="#FFFFFF" stroke-width="4"></path>
        <path d="M115.995,92.508 L184.695,92.508 L184.695,207.492 L115.995,207.492 L115.995,92.508 Z" id="Path-3" stroke="#FFFFFF" stroke-width="4"></path>
        <path d="M105.995,82.508 L194.695,82.508 L194.695,217.492 L105.995,217.492 L105.995,82.508 Z" id="Path-4" stroke="#FFFFFF" stroke-width="4"></path>
        <path d="M96.021,82.508 L59.647,82.508 L59.647,72.534 L240.353,72.534 L240.353,82.508 L204.669,82.508 L204.669,217.492 L240.353,217.492 L240.353,227.466 L59.647,227.466 L59.647,217.492 L96.021,217.492 L96.021,82.508 Z" id="Path-5" stroke="#FFFFFF" stroke-width="4"></path>
        <path d="M86.021,92.508 L49.647,92.508 L49.647,62.534 L250.353,62.534 L250.353,92.508 L214.669,92.508 L214.669,207.492 L250.353,207.492 L250.353,237.466 L49.647,237.466 L49.647,207.492 L86.021,207.492 L86.021,92.508 Z" id="Path-6" stroke="#FFFFFF" stroke-width="4"></path>
        <path d="M76.021,102.508 L39.647,102.508 L39.647,52.534 L260.353,52.534 L260.353,102.508 L224.669,102.508 L224.669,197.492 L260.353,197.492 L260.353,247.466 L39.647,247.466 L39.647,197.492 L76.021,197.492 L76.021,102.508 Z" id="Path-7" stroke="#FFFFFF" stroke-width="4"></path>
        <path class="path-m-left left-1 " d="M125.995,102.508 L174.696,102.508 L174.696,197.492 L125.995,197.492 L125.995,102.508 Z" id="Path-2" stroke="#FF5501" stroke-width="4"></path>
        <path class="path-m-right right-1" d="M115.995,92.508 L184.695,92.508 L184.695,207.492 L115.995,207.492 L115.995,92.508 Z" id="Path-3" stroke="#FF5501" stroke-width="4"></path>
        <path class="path-m-left left-2" d="M105.995,82.508 L194.695,82.508 L194.695,217.492 L105.995,217.492 L105.995,82.508 Z" id="Path-4" stroke="#FF5501" stroke-width="4"></path>
        <path class="path-m-right right-2" d="M96.021,82.508 L59.647,82.508 L59.647,72.534 L240.353,72.534 L240.353,82.508 L204.669,82.508 L204.669,217.492 L240.353,217.492 L240.353,227.466 L59.647,227.466 L59.647,217.492 L96.021,217.492 L96.021,82.508 Z" id="Path-5" stroke="#FF5501" stroke-width="4"></path>
        <path class="path-m-left left-3" d="M86.021,92.508 L49.647,92.508 L49.647,62.534 L250.353,62.534 L250.353,92.508 L214.669,92.508 L214.669,207.492 L250.353,207.492 L250.353,237.466 L49.647,237.466 L49.647,207.492 L86.021,207.492 L86.021,92.508 Z" id="Path-6" stroke="#FF5501" stroke-width="4"></path>
        <path class="path-m-right right-3" d="M76.021,102.508 L39.647,102.508 L39.647,52.534 L260.353,52.534 L260.353,102.508 L224.669,102.508 L224.669,197.492 L260.353,197.492 L260.353,247.466 L39.647,247.466 L39.647,197.492 L76.021,197.492 L76.021,102.508 Z" id="Path-7" stroke="#FF5501" stroke-width="4"></path>
      </g>
    </svg>
  </div>  
</div>
              
            
!

CSS

              
                html, body {
  background-color: #292929;
  height: 100%;
  margin: 0;
}

.container {
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.svg-container {
    padding: 0;
    height: 300px;
    border-radius: 8px;
    transform: scale(1.5);
}

.svg-frame {
  border-radius: 8px;
}

.m {
    background-color: #0A00D6;
}

.path-m-left { animation: dash 10s linear infinite alternate-reverse;}
.path-m-right { animation: dash 10s linear infinite alternate; }

.left-1 { stroke-dasharray: 36, 99; stroke-linecap: square;}
.left-2 { stroke-dasharray: 36, 179;stroke-linecap: square;}
.left-3 { stroke-dasharray: 36, 404;stroke-linecap: square;}
.right-1 { stroke-dasharray: 36, 139;stroke-linecap: square;}
.right-2 { stroke-dasharray: 36, 364;stroke-linecap: square;}
.right-3 { stroke-dasharray: 36, 444;stroke-linecap: square;}

@keyframes dash {
  to {
    stroke-dashoffset: 1000;
  }
}

              
            
!

JS

              
                
              
            
!
999px

Console