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

              
                <svg viewBox="0 0 240 210" xmlns="http://www.w3.org/2000/svg" >
  <path id="start1" d="M82.904 32.625c21.258 0 40.251 9.946 52.722 25.508 9.542 11.907 15.266 27.102 15.266 43.647 0 38.168-30.465 69.155-67.988 69.155-37.524 0-67.988-30.987-67.988-69.155 0-38.168 30.464-69.155 67.988-69.155z" fill="green"/>
  <path id="end1" d="M82.904 32.625c21.258 0 59.138 12.775 76.444 22.431 19.628 10.952 81.134 46.925 33.398 44.099-38.757-2.295-54.774 75.122-109.842 71.78-37.45-2.273-67.988-30.987-67.988-69.155 0-38.168 30.464-69.155 67.988-69.155z" fill="green"/>
</svg>

<svg viewBox="0 0 240 210" xmlns="http://www.w3.org/2000/svg">
  <path id="two" d="M82.904 32.625c32.655.277 66.612 21.182 75.064 25.806 5.717 3.128 72.555 55.102 70.058 54.167-69.595-26.075-90.054 61.679-145.122 58.337-37.45-2.273-67.988-30.987-67.988-69.155 0-38.168 30.466-69.473 67.988-69.155z" fill="green"/>
  <path id="one" d="M82.904 32.625c21.258 0 40.251 9.946 52.722 25.508 9.542 11.907 15.266 27.102 15.266 43.647 0 38.168-30.465 69.155-67.988 69.155-37.524 0-67.988-30.987-67.988-69.155 0-38.168 30.464-69.155 67.988-69.155z" fill="green"/>
</svg>
              
            
!

CSS

              
                body {
  margin: 0;
  background: grey;
}
svg {
  position:relative;
  display: block;
  float:left;
  width:400px;
  fill:#ccc;
}
#end1, #two {
  visibility:hidden;
}
              
            
!

JS

              
                TweenMax.to("#start1", 1, {delay:.25, 
  morphSVG:{
    shape:"#end1", 
  }, repeat:9, yoyo:true, repeatDelay:1, ease: Back.easeOut.config(2.5)
});
TweenMax.to("#one", 1, {delay:.25, 
  morphSVG:{
    shape:"#two", 
  }, repeat:9, yoyo:true, repeatDelay:1, 
  ease: Bounce.easeOut
});
              
            
!
999px

Console