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" fill-rule="evenodd"  stroke-linejoin="round" stroke-miterlimit="1.5" clip-rule="evenodd" viewBox="0 0 300 300">
  <defs>
    <mask id="mask">
        <path id="mask01" fill="none" stroke="#fff" stroke-linecap="butt" stroke-width="63" d="M64.572 300.843L192.648 68.492"/>
  <path id="mask02" fill="none" stroke="#fff" stroke-linecap="butt" stroke-width="48" d="M215.363 56.613c-35.659-36.036-86.364-33.318-121.159-22.644"/>
  <path id="mask03" fill="none" stroke="#fff" stroke-linecap="butt" stroke-width="80" d="M99.833 57.514s130.75 209.969 132.611 211.631"/>
    </mask>

  </defs>
  <g mask="url(#mask)">
    <path fill="#de2b0c" d="M187.686 141.573l-34.083 59.623 53.534 92.595 41.46-54.544-60.911-97.674z"/>
    <path fill="#de2b0c" d="M153.648 78.904l-16.96-27.521c-28.039-.488-55.877 8.267-47.97 36.052l27.81 56.92 37.12-65.451z"/>
    <path fill="#de2b0c" stroke="grey" stroke-width="2.2" d="M35.761 287.083l80.437-12.568 91.699-168.556c6.772-24.795-13.548-39.71-41.692-51.772L35.761 287.083z"/>
    <path fill="#de2b0c" stroke="grey" stroke-width="2.2" d="M202.503 77.242l-24.735-51.094c-9.308-20.128-37.997-24.27-51.87-6.911L98.555 57.668c40.889-14.164 74.672-7.954 103.948 19.574z"/>
  </g>
</svg>
              
            
!

CSS

              
                body{
  background-color:grey;
}
svg{
  visibility:hidden;
  height:90vh;
}
              
            
!

JS

              
                
gsap.set('svg',{autoAlpha:1})
var dur = 1;

var action = gsap.timeline({paused:true})
.from("#mask01", { drawSVG: 0, duration:dur, ease:"none" })
.from("#mask02", { drawSVG: 0, duration:dur, ease:"none" })
.from("#mask03", { drawSVG: 0, duration:dur, ease:"none" })

//special ease for entire timeline - tween the timeline ...
gsap.to(action, {time:action.duration(), duration:action.duration(), 
ease:"power3.inOut", repeat:10, yoyo:true, repeatDelay:1, delay:1});
              
            
!
999px

Console