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

              
                <div class="canvas">
  <svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" id="svg3680" width="300" height="300" viewBox="0 0 64 64">
  <path
     style="stroke:#4b6b89;stroke-width:1px;stroke-linecap:round;stroke-linejoin:miter;stroke-opacity:1"
     d="M 31.145037,0.732824 V 9.648855 C 20.680206,10.072899 13.84413,15.861189 10.870228,27.358779 l 17.954199,0.122137 0.122137,8.549618 H 10.870228 c 1.519702,11.162708 9.299616,16.044509 19.908397,18.442748 l 0.122138,8.427481 C 15.721173,62.12825 0.79753318,48.330539 1.4656488,31.633586 2.5397322,13.014091 15.815549,1.4397284 31.145037,0.732824 Z"
     id="path3704" />
  <g
     id="g3719"
     transform="translate(-0.2442748,-0.6106875)">
    <path
       id="path3706"
       d="m 34.32061,1.3435115 0.122138,62.1679395 c 8.565104,-0.821982 24.600985,-6.046752 28.946565,-26.992367 l -2.687023,-3.664122 3.053435,-3.78626 C 60.170884,11.952832 50.159486,3.5184229 34.32061,1.3435115 Z"
       style="stroke-width:1px;stroke-linecap:round;stroke-linejoin:miter;stroke-opacity:1" />
    <path
       id="path3712"
       d="m 42.992366,12.946565 0.244275,14.900763 H 54.351145 C 52.89394,22.592485 50.96688,17.395727 42.992366,12.946565 Z"
       style="stroke-width:1px;stroke-linecap:round;stroke-linejoin:miter;stroke-opacity:1" />
    <path
       id="path3714"
       d="M 43.236641,36.885496 H 54.839695 C 52.771586,45.370144 48.32073,49.45571 43.358778,52.152672 Z"
       style="stroke-width:1px;stroke-linecap:round;stroke-linejoin:miter;stroke-opacity:1" />
  </g>
</svg>
</div>
              
            
!

CSS

              
                body {
  background: #222;
}

.canvas {
  display: inline-block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
}

.canvas svg {
  max-width: 96%;
}

#path3704 {
  stroke: #4b6b89;
  stroke-dasharray: 215;
  stroke-dashoffset: 0;
  fill: transparent;
  animation: dash 6s linear forwards;
}

#path3706 {
  stroke: #4b6b89;
  stroke-dasharray: 158;
  stroke-dashoffset: 0;
  fill: transparent;
  animation: dash2 6s linear forwards;
}

#path3712, #path3714 {
  stroke: #4b6b89;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
  fill: #222;
  animation: dash3 6.5s linear forwards;
}

@keyframes dash {
  0%, 20% {
    stroke-dashoffset: 215;
  }
  65% {
    stroke-dashoffset: 0;
  }
  66% {
    fill: transparent;
  }
  80%, 100% {
    fill: #4b6b89;
  }
}

@keyframes dash2 {
  0%, 20% {
    stroke-dashoffset: 158;
  }
  65% {
    stroke-dashoffset: 0;
  }
  66% {
    fill: transparent;
  }
  80%, 100% {
    fill: #4b6b89;
  }
}

@keyframes dash3 {
  0%, 20% {
    stroke-dashoffset: 100;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

              
            
!

JS

              
                
              
            
!
999px

Console