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.

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

            
              <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="-1 -1 18 18" preserveAspectRatio="xMidYMin meet">
  <g>
    <circle cx="0" cy="0" r="50%" width="100%" height="100%" fill="#1D310F" />
    <path
        d="M0,0 m-8,0
        a8,8 0 1,1 16,0
        a8,8 0 1,1 -16,0
        "
        fill="transparent"
        stroke="white"
        stroke-width="1px"
        stroke-dasharray="50.3 50.3"
        stroke-linecap="round" />
  </g>

  <defs>
    <style type="text/css">
      g {
        -webkit-transform-origin: 50% 50%;
           -moz-transform-origin: 50% 50%;
            -ms-transform-origin: 50% 50%;
             -o-transform-origin: 50% 50%;
                transform-origin: 50% 50%;

        -webkit-animation: rotate 2s infinite ease-in-out;
           -moz-animation: rotate 2s infinite ease-in-out;
            -ms-animation: rotate 2s infinite ease-in-out;
             -o-animation: rotate 2s infinite ease-in-out;
                animation: rotate 2s infinite ease-in-out;
        
        -webkit-transform: translate(8px, 8px) rotate(0deg);
        -moz-transform: translate(8px, 8px) rotate(0deg);
        -ms-transform: translate(8px, 8px) rotate(0deg);
        -o-transform: translate(8px, 8px) rotate(0deg);
        transform: translate(8px, 8px) rotate(0deg);
      }

      path {
        stroke-dashoffset: 50.3;

        -webkit-animation: circle 3s infinite ease-in-out;
           -moz-animation: circle 3s infinite ease-in-out;
            -ms-animation: circle 3s infinite ease-in-out;
             -o-animation: circle 3s infinite ease-in-out;
                animation: circle 3s infinite ease-in-out;
      }

      @-webkit-keyframes rotate {
        to {
          -webkit-transform: translate(8px, 8px) rotate(359deg);
                  transform: translate(8px, 8px) rotate(359deg);
        }
      }

      @-moz-keyframes rotate {
        to {
          -moz-transform: translate(8px, 8px) rotate(359deg);
               transform: translate(8px, 8px) rotate(359deg);
        }
      }

      @-ms-keyframes rotate {
        to {
          -ms-transform: translate(8px, 8px) rotate(359deg);
              transform: translate(8px, 8px) rotate(359deg);
        }
      }

      @-o-keyframes rotate {
        to {
          -o-transform: translate(8px, 8px) rotate(359deg);
             transform: translate(8px, 8px) rotate(359deg);
        }
      }

      @keyframes rotate {
        to {
          transform: translate(8px, 8px) rotate(359deg);
        }
      }

      @-webkit-keyframes circle {
        to {
          stroke-dashoffset: -50.3;
        }
      }


      @-moz-keyframes circle {
        to {
          stroke-dashoffset: -50.3;
        }
      }


      @-ms-keyframes circle {
        to {
          stroke-dashoffset: -50.3;
        }
      }


      @-o-keyframes circle {
        to {
          stroke-dashoffset: -50.3;
        }
      }

      @keyframes circle {
        to {
          stroke-dashoffset: -50.3;
        }
      }
    </style>
  </defs>
</svg>
            
          
!

CSS

            
              $spinner-size: 160px
  
html, body
  height: 100%
  text-align: center
  background: #244011

svg
  width: $spinner-size
  height: $spinner-size
  position: absolute
  top: 50%
  left: 50%
  margin-top: -$spinner-size / 2
  margin-left: -$spinner-size / 2
            
          
!

JS

            
              
            
          
!
999px

Console