Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's 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 it's URL and the proper URL extention.

+ 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.


Save Automatically?

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.


                <div style="position: absolute; left: 100px;top:10px;">
<svg width="539" height="397" viewBox="0 0 539 397" xmlns="">
  <g id="Page-1" fill="none" fill-rule="evenodd">
    <g id="demo">
      <path d="M159 70c-50.386 35.428-74.284 72.547-71.691 111.355 2.592 38.81 31.514 76.92 86.765 114.333L447.7 84.137l-9.812 263.996" id="path" stroke="#979797" />
      <g id="drag" transform="translate(145 55)">
        <circle id="Oval" fill="#F5A623" cx="15" cy="15" r="15" />
        <path d="M18.5 11.5l-13 10" id="Line" stroke="#F6E5E5" stroke-linecap="square" />
        <path id="Line-decoration-1" d="M5.5 21.5l10.39-4.207-3.659-4.756L5.5 21.5z" stroke="#F6E5E5" stroke-linecap="square" />




                TweenMax.set("#drag", {transformOrigin:"50% 50%", xPercent:-50, yPercent:-50});

var path = MorphSVGPlugin.pathDataToBezier("#path", {offsetX:0, offsetY:0, relative:true});

var tl = new TimelineMax({repeat:1, yoyo:true});"#drag", 3, {
  bezier: {
    values: path,
    type: "cubic",
    autoRotate: true
  ease: Linear.easeNone

Draggable.create("#drag", {
  type: "x,y",
  edgeResistance: 0.5