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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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 id="Layer_1" data-name="Layer 1" preserveAspectRatio="xMidYMid slice" xmlns="http://www.w3.org/2000/svg" viewBox="-100 0 1100 841.89">
  <defs>
    <filter id="paintBlue" height="1000" width="1300" x="-200" y="-200">
      
<!--       create some fractal noise -->
      <feTurbulence baseFrequency=".01" type="fractalNoise" numOctaves="4" seed="2" result="NOISE"/>
      
       <feDisplacementMap in="SourceAlpha" scale="250" result="BLOBS"/>
<!--       tint the noise and invert for contrast -->
      <feColorMatrix in="NOISE" type="matrix" color-interpolation-filters="sRGB"           values="0.61 0   0   0   0
        0   0.96  0   0   0
        0   0   0.99  0   0
        0   0   0   1   0.25 " result="COLOURED-NOISE" ></feColorMatrix>
      
<!--       Add to source alpha -->
      <feComposite operator="in" in="COLOURED-NOISE" in2="BLOBS" result="FILL"></feComposite>
      
      <feTurbulence numOctaves="4" seed="0" type="fractalNoise" baseFrequency="0.2"/>
      <feDiffuseLighting lighting-color="rgb(250,250,250)" surfaceScale="0.5" kernelUnitLength="0.01" diffuseConstant="1.1000000000000001" result="paper">
       <feDistantLight elevation="40" azimuth="75"/>
      </feDiffuseLighting>
      
       <feBlend in="FILL" in2="paper" mode="multiply"/>
    </filter>
    
    <filter id="paper" height="1000" width="1300" y="-200" x="-200">
      <feTurbulence numOctaves="4" seed="0" type="fractalNoise" baseFrequency="0.2"/>
      <feDiffuseLighting lighting-color="rgb(250,250,250)" surfaceScale="0.5" kernelUnitLength="0.01" diffuseConstant="1.1000000000000001" result="paper">
       <feDistantLight elevation="40" azimuth="75"/>
      </feDiffuseLighting>
    </filter>
  </defs>
  <rect x="0" y="0" width="1000" height="1000" filter="url(#paper)"/>
  
  <path class="paint" pathLength="1" filter="url(#paintBlue)" d="M73.65,595.53S94.82,361.41,201.88,390.82s164.71,140,241.18,77.65,31.76-200,116.47-195.29,267.06,35.29,207.06,131.76S664.24,539.06,699.53,586.12" fill="none" stroke="#000" stroke-linecap="round" stroke-width="100"/>
</svg>

              
            
!

CSS

              
                body {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

svg {
  height: 100vh;
  width: 100vw;
}

.paint {
  stroke-dasharray: 1.2;
  stroke-dashoffset: 1.2;
  animation: paint 7s ease-in-out 0.5s both;
}


@keyframes paint {
  0% {
    stroke-dashoffset: 1.2; 
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console