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 id="app"></app>
              
            
!

CSS

              
                
              
            
!

JS

              
                class Application extends React.Component {
  render() { 
    return <span dangerouslySetInnerHTML={{__html: `<svg version="1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="300" height="300" viewBox="0 0 300 300">
    <g transform="matrix(.1 0 0 -.1 0 300)" fill="none" stroke-width="80">
        <defs>
            <path d="M1332 2059c-280-36-499-217-568-469-25-92-23-268 5-373 70-265 248-408 549-439 279-29 495 77 602 295 43 89 65 164 76 257l6 59 64 41c35 22 77 57 94 78 38 45 86 144 95 195 7 35 6 37-20 37-37 0-65 17-65 39 0 11 13 49 30 85 29 65 42 108 54 174l6 32-433-1c-237-1-460-5-495-10z" stroke-linejoin="round" id="a"></path>
        </defs>
        <use xlink:href="#a" stroke="#FEE69E"></use>
        <use xlink:href="#a" stroke-dasharray="4100,700" stroke="#FDC22D">
            <animate attributeName="stroke-dashoffset" dur=".7s" to="4800" repeatCount="indefinite" calcMode="spline" keyTimes="0; 1" keySplines=".1,.2,.55,-0.3"></animate>
        </use>
    </g>
</svg>
`}} />}
}
React.render(<Application />, document.getElementById('app'));
              
            
!
999px

Console