Pen Settings



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


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


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.


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.


                <p id="fillRule">fill-rule =
  <input type="radio" name="fr" value="nonzero">nonzero
  <input type="radio" name="fr" value="evenodd" checked>evenodd
<svg id="svg" viewBox="0 -30 263 263">  
<path id="a" class="a" d="M200,100 L64.32,144.08 148.18,28.67 148.18,171.33 64.32,55.92 200,100z"   fill-rule="evenodd"></path>
  <circle cx="200" cy="100" r="8" />
  <text x="200" y="100" dx="1em" dy=".25em">1</text>
  <circle cx="64.32" cy="144.08" r="8" />
  <text x="64.32" y="144.08" dx="-1em" dy=".5em">2</text>

  <circle cx="148.18" cy="28.67" r="8" />
  <text x="148.18" y="28.67" dy="-1em">3</text>

  <circle cx="148.18" cy="171.33" r="8" />
  <text x="148.18" y="171.33" dy="1.5em">4</text>

  <circle cx="64.32" cy="55.92" r="8" />
  <text x="64.32" y="55.92" dx="-1em">5</text>

<svg  viewBox="0 -4 125 125">
<path id="b" class="b"  d="M110,60 L27.257,97.787 52.884,10.509 102.062,87.032 12.025,74.0866278420715 80.77,14.518 80.77,105.482 12.025,45.913 102.062,32.968 52.884,109.491 27.257,22.212 110,60z" style="stroke-width:1" fill-rule="evenodd" ></path>


div{display:flex; justify-content: space-between;}
svg {
  border: 1px solid silver;
  width: 45vw;
p {
  text-align: center;
path {
  fill: #6ab150;
  stroke: #003300;
  stroke-width: 2;

circle {
  stroke: purple;
  stroke-width: 4;
  fill: hsla(330, 100%, 50%, 0.5);

text {
  font-size: 18px;
  fill: black;
  text-anchor: middle;
  font-family: consolas;

.a {
  stroke-dasharray: 713.3px;
  stroke-dashoffset: 713.3px;
    animation: dash 5s infinite;

.b{stroke-dasharray: 1000.6px;
  stroke-dashoffset: 1000.6px;
  animation: dashb 5s infinite;}

@keyframes dash {
  100% {
    stroke-dashoffset: 0px;
@keyframes dashb {
  100% {
    stroke-dashoffset: 0px;



                let ry = Array.from(document.querySelectorAll("path"));
let svgs = Array.from(document.querySelectorAll("svg path"));

setInterval(() => {
  ry.forEach((p) => {
}, 2000);*/