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 width="400px" height="400px" viewBox="0 0 400 400" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
    <!-- Generator: Sketch 40.3 (33839) - http://www.bohemiancoding.com/sketch -->
    <desc>Created with Sketch.</desc>
    <defs>
        <rect id="path-1" x="0" y="0" width="400" height="400"></rect>
        <mask id="mask-2" maskContentUnits="userSpaceOnUse" maskUnits="objectBoundingBox" x="0" y="0" width="400" height="400" fill="white">
            <use xlink:href="#path-1"></use>
        </mask>
    </defs>
    <g id="Group" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
        <use id="Rectangle" stroke="" mask="url(#mask-2)" stroke-width="2" xlink:href="#path-1"></use>
        <polygon id="Star" fill="#9B9B9B" points="200 252 138.870334 284.137767 150.545061 216.068884 101.090122 167.862233 169.435167 157.931116 200 96 230.564833 157.931116 298.909878 167.862233 249.454939 216.068884 261.129666 284.137767"></polygon>
        <polygon id="Check" fill="#9B9B9B" points="184 274 145 312 53 183.862233 87 165 145 238 297 89 347 112 288 169 246 213 218 238"></polygon>
    </g>
</svg>
              
            
!

CSS

              
                svg {
  display: block;
  margin: 0px auto;
} 

#Check {
   visibility: hidden;
 }
              
            
!

JS

              
                var star = document.getElementById("Star")
var check = document.getElementById("Check")

TweenLite.to(star, 3, {
  morphSVG: check,
  onComplete: function() {
    this.restart()
  },
})
              
            
!
999px

Console