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 xmlns="http://www.w3.org/2000/svg" overflow="scroll" viewBox="0 0 977 550" width="977" height="550" baseProfile="tiny">
		<g id="stageone">
			<path fill="#fff" stroke="#000" stroke-miterlimit="10" stroke-width="2" d="M 1 1 h 975 v 548 H 1 Z" />
			<path fill="#00796b" d="M 2 2 h 973 v 93 H 2 Z" />
			<path fill="#212121" d="M 658 46 h 130 v 8 H 658 Z M 802 46 h 132 v 8 H 802 Z M 513 46 h 130 v 8 H 513 Z" />
			<ellipse fill="#7c4dff" cx="86.732" cy="48.835" rx="35.732" ry="31.405" />
			<ellipse fill="#fff" cx="93.125" cy="54" rx="27.125" ry="24" />
			<path fill="#757575" d="M 392 166 h 193 v 193 H 392 Z" />
			<path fill="#bdbdbd" d="M 271 412 h 435 v 12 H 271 Z M 271 454 h 435 v 12 H 271 Z M 271 497 h 435 v 12 H 271 Z M 271 540 h 435 v 8 H 271 Z" />
		</g>
		<g id="stagetwo">
			<path fill="#fff" stroke="#000" stroke-miterlimit="10" stroke-width="2" d="M 328 1 h 321 v 548 H 328 Z" />
			<path fill="#00796b" d="M 329 2 h 319 v 93 H 329 Z" />
			<path fill="#212121" d="M 590 32 h 44 v 8 h -44 Z M 590 44 h 44 v 8 h -44 Z M 590 56 h 44 v 8 h -44 Z" />
			<path fill="#757575" d="M 456 166 h 65 v 193 h -65 Z" />
			<path fill="#bdbdbd" d="M 350 440 h 275 v 12 H 350 Z M 350 489 h 275 v 12 H 350 Z M 350 532 h 275 v 12 H 350 Z" />
			<path fill="#757575" d="M 368 155 h 240 v 240 H 368 Z" />
			<ellipse fill="#7c4dff" cx="380.732" cy="47.835" rx="35.732" ry="31.405" />
			<ellipse fill="#fff" cx="387.125" cy="53" rx="27.125" ry="24" />
		</g>
	</svg>
              
            
!

CSS

              
                #stagetwo {
  visibility: hidden;
}
              
            
!

JS

              
                MorphSVGPlugin.convertToPath('#stageone, #stagetwo');
		TweenMax.to('#stageone', 5, {morphSVG: "#stagetwo"});
              
            
!
999px

Console