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

              
                <svg xmlns="http://www.w3.org/2000/svg" width="300" height="300" viewBox="0 0 1050 1292">
	<path id="hex" d="M 173.124 103.895 L 216.273 178.631 C 219.48 184.185 215.471 191.128 209.058 191.128 L 132.245 191.128 C 126.268 191.128 120.745 187.939 117.756 182.763 L 72.241 103.929 C 69.253 98.752 69.253 92.375 72.241 87.199 L 117.756 8.365 C 120.745 3.189 126.268 0 132.245 0 L 209.058 0 C 215.471 0 219.48 6.942 216.273 12.496 L 173.124 87.233 C 170.147 92.388 170.147 98.74 173.124 103.895 Z">
    <animate id="hexStart" dur="0.1s" begin="btn.mouseover" fill="freeze" attributeName="d" to= "M 173.124 103.895 L 216.273 178.631 C 219.48 184.185 215.471 191.128 209.058 191.128 L 62.245 191.128 C 56.268 191.128 50.745 187.939 47.756 182.763 L 2.241 103.929 C -0.747 98.752 -0.747 92.375 2.241 87.199 L 47.756 8.365 C 50.745 3.189 56.268 0 62.245 0 L 209.058 0 C 215.471 0 219.48 6.942 216.273 12.496 L 173.124 87.233 C 170.147 92.388 170.147 98.74 173.124 103.895 Z" />
    <animate id="hexEnd" dur="0.6s" begin="btn.mouseout" fill="freeze" attributeName="d" to= "M 173.124 103.895 L 216.273 178.631 C 219.48 184.185 215.471 191.128 209.058 191.128 L 132.245 191.128 C 126.268 191.128 120.745 187.939 117.756 182.763 L 72.241 103.929 C 69.253 98.752 69.253 92.375 72.241 87.199 L 117.756 8.365 C 120.745 3.189 126.268 0 132.245 0 L 209.058 0 C 215.471 0 219.48 6.942 216.273 12.496 L 173.124 87.233 C 170.147 92.388 170.147 98.74 173.124 103.895 Z" />
  </path>
</svg>

<div class="btn" id="btn">Кнопка</div>
              
            
!

CSS

              
                .block {
  height: 150px;
  width: 150px;
  background: #000;
}

.btn {
  height: 20px;
  width: 100px;
  background: #ccc;
  text-align: center;
  cursor: pointer;
}
              
            
!

JS

              
                
              
            
!
999px

Console