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 class="container">
  <svg viewBox="0 0 1200 1200">
    <path d="M320 111A272 272 0 0 0 66 350c-4 34-2 94 6 141 11 68 36 125 80 182 17 22 33 40 62 69 40 40 55 54 152 138 107 92 163 143 219 196l15 14 15-14c56-53 113-104 219-196 95-82 121-106 158-143a439 439 0 0 0 144-316c2-57-4-98-20-139a269 269 0 0 0-192-164c-74-17-146-5-210 32a333 333 0 0 0-114 116l-10-14c-11-18-24-34-39-50-64-65-144-97-231-91z"/>
  </svg>

  <p class="text">Hover<br> me</p>
</div>
              
            
!

CSS

              
                /* starting state */
path {
  fill: transparent;
  stroke: lightpink;
  stroke-dasharray: 3400;
  stroke-dashoffset: 3400;
  stroke-width: 20px;
  
  /* FYI - “stroke” refers to the line represented by <path>. */
}

/* end state */
path:hover {
  fill: lightpink;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s, fill 1s 0.9s;
}



/****** Additional styling below ******/

body {
  background: mistyrose;
}

.container {
  margin: 0 auto;
  max-width: 600px;
  position: relative;
  width: 70%;
}

.text {
  color: deeppink;
  font-family: "Helvetica", sans-serif;
  font-size: 80px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.1;
  margin: 0;
  pointer-events: none;
  position: absolute;
  text-align: center;
  text-transform: uppercase;
  top: calc(50% - 1.2em);
  width: 100%;
}
              
            
!

JS

              
                
              
            
!
999px

Console