Pen Settings



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


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


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.


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.


                <svg version="1.1" id="g1" xmlns="" xmlns:xlink="" x="0px" y="0px"
	 viewBox="0 0 1920 1080" style="enable-background:new 0 0 1920 1080;" xml:space="preserve">
<style type="text/css">
<g class="st0">
	<rect x="720" y="299" class="st1" width="480" height="480"/>
	<polygon class="st1" points="48,779 648,779 360,299 	"/>
	<polygon class="st1" points="1272,454.5 1377.4,779 1718.6,779 1824,454.5 1548,254 	"/>
<path id="origin" class="st2" d="M1200,779H958.9H720V299h238.9H1200V779z M48,779h310.4H648L360,299L203.5,539.8L48,779z
<path id="destination" class="st2" d="M1109.5,799.9l-150,40.2l-150-40.2V280.3l150-40.2l150,40.2V799.9z M659.6,540.1l40.2,150
	l109.8,109.8V280.3L699.8,390.1L659.6,540.1z M1109.5,799.9l109.8-109.8l40.2-150l-40.2-150l-109.8-109.8V799.9z"/>
<path class="st3" d="M1259.5,540.1l-40.2,150l-109.8,109.8l-150,40.2l-150-40.2L699.8,690.1l-40.2-150l40.2-150l109.8-109.8
<div id="slider"></div>


                body {
 background: #fff;
svg {
  display: block;
  margin: 0 auto;
  width: 600px;

#destination {
  visibility: hidden;

#slider {
  width: 420px;
  margin: 0 auto;


Try GreenSock's MorphSVGPlugin for free.
 - Press the Fork button
 - add your own SVG, JS and HTML
 - have fun.
 Learn more about MorphSVGPlugin here:
 MorphSVGPlugin is a bonus plugin for Shocking Green and Business Green members:


var tl = gsap.timeline({onUpdate:updateSlider}),
    origin = document.getElementById("origin");, 1, {morphSVG: {shape: "#destination", duration: 2, type: "rotational"}}, "+=2");, 1, {})

/* controls */

  range: false,
  min: 0,
  max: 1,
  slide: function ( event, ui ) {
    tl.progress( ui.value ).pause();
  stop: function () {;

function updateSlider() {
  $("#slider").slider("value", tl.progress());