Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ 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

Auto Save

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="relative">
        <svg class="pen" width="32" height="33" viewBox="0 0 32 33" fill="none" xmlns="http://www.w3.org/2000/svg">
            <path fill-rule="evenodd" clip-rule="evenodd" d="M18 8L5 4l10 10h1a3 3 0 1 1-3 2L4 6l3 13a9 9 0 0 0 12 7l1-1 1 1 4 4 4-4-4-4-1-1 1-1a9 9 0 0 0-7-12zm13 16l1 2-1 1-5 4-1 2-2-2-3-3a11 11 0 0 1-15-9L1 3 0 1l2 1 17 4a11 11 0 0 1 8 14l4 4z" fill="#000" fill-opacity=".8"/>
          </svg>
        
        <svg class="squiggle-svg" width="175" height="57" viewBox="0 0 175 57" fill="none" xmlns="http://www.w3.org/2000/svg">
            <path class="squiggle" d="M1.68262 35.3564C4.67606 26.8037 5.87281 18.0939 11.9267 10.9922C23.9354 -3.09489 41.1366 26.127 47.0332 33.5291C59.1756 48.7717 75.4429 60.8179 95.0972 52.799C115.991 44.2741 107.5 0.5 173 2.00004" stroke="#18A0FB" stroke-width="3" stroke-linecap="round"/>
            </svg>
            
    </div>
              
            
!

CSS

              
                
        .relative {
            position: relative;
            margin-inline: auto;
            margin-top: 48px;
            width: 207px;
        }

        .squiggle {
            stroke-dasharray: 230;
            stroke-dashoffset: 230;
            animation: dash 2s ease-in forwards;
        }

        .squiggle-svg {
            position: absolute;
        }

        .pen {
            offset-path: path("M1.68262 35.3564C4.67606 26.8037 5.87281 18.0939 11.9267 10.9922C23.9354 -3.09489 41.1366 26.127 47.0332 33.5291C59.1756 48.7717 75.4429 60.8179 95.0972 52.799C115.991 44.2741 107.5 0.5 173 2.00004");
            offset-distance: 0%;
            offset-anchor: top left;
            position: absolute;
            animation: movePen 2s ease-in forwards;
        }

        @keyframes movePen {
            0% {
                offset-distance: 0%;
            }
            100% {
                offset-distance: 100%;
            }
        }

        @keyframes dash {
            to {
                stroke-dashoffset: 0;
            }
        }
              
            
!

JS

              
                
              
            
!
999px

Console