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

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>
  <svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" width="100%" height="auto" version="1.1" style="shape-rendering:geometricPrecision; text-rendering:geometricPrecision; image-rendering:optimizeQuality; fill-rule:evenodd; clip-rule:evenodd"
    viewBox="0 0 29700 21000" xmlns:xlink="http://www.w3.org/1999/xlink">
 <defs>
 
  <filter id="f1" x="0" y="0">
      <feGaussianBlur in="SourceGraphic" stdDeviation="655" />
  </filter>
 </defs>
 <g id="Layer_x0020_1">
  <metadata id="CorelCorpID_0Corel-Layer"/>
  <path class="fil0 str0 cw" d="M11883 17433c-1505,-2401 -792,-7998 -236,-9492 461,-1239 1837,-1709 596,-62 -844,1119 -5521,2494 -5990,3617 -173,414 163,823 749,381 207,-156 438,-387 616,-682 8152,-13521 -4815,-11285 -3765,-4379 1018,6694 10161,-5067 10161,-683 0,4989 -2160,6812 2344,11316 4413,4413 13383,2113 1191,-5546 -3575,-2246 -2896,670 -1585,35 9097,-4405 3494,-11569 -521,-6605 -4327,5350 16076,-12744 8933,6226 -2231,5926 2628,-1388 -348,-2975 -2345,-1250 -4734,4750 -4581,6632" filter="url(#f1)"/>
  
  <path class="fil0 str0 cw ss" d="M11883 17433c-1505,-2401 -792,-7998 -236,-9492 461,-1239 1837,-1709 596,-62 -844,1119 -5521,2494 -5990,3617 -173,414 163,823 749,381 207,-156 438,-387 616,-682 8152,-13521 -4815,-11285 -3765,-4379 1018,6694 10161,-5067 10161,-683 0,4989 -2160,6812 2344,11316 4413,4413 13383,2113 1191,-5546 -3575,-2246 -2896,670 -1585,35 9097,-4405 3494,-11569 -521,-6605 -4327,5350 16076,-12744 8933,6226 -2231,5926 2628,-1388 -348,-2975 -2345,-1250 -4734,4750 -4581,6632"/>
  
 </g>

</svg>
</div>
              
            
!

CSS

              
                .str0 {
  stroke: green;
  stroke-width: 900;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacityk: .5;
}
.fil0 {
  fill: none;
}
.ss {
  stroke-width: 300;
}

html {
  background-color: #000;
}

div {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.cw {
  stroke-dasharray: 142876 142878;
  stroke-dashoffset: 142877;
  animation: IeClJJRe_draw 10s ease-in-out 0s forwards;
  box-shadow: 0 0 10px #9ecaed;
}

@keyframes IeClJJRe_draw {
  100% {
    stroke-dashoffset: 0;
  }
  0% {
    stroke: #f0f;
  }
  20% {
    stroke: #ff0;
  }
  40% {
    stroke: #0f0;
  }
  60% {
    stroke: #0ff;
  }
  80% {
    stroke: #00f;
  }
  100% {
    stroke: #f00;
  }
}

              
            
!

JS

              
                var path = document.querySelector("path");
var pathLength = path.getTotalLength();
console.log(pathLength);

              
            
!
999px

Console