Pen Settings

HTML

CSS

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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ 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

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.

HTML

              
                <svg xmlns="http://www.w3.org/2000/svg" width="50px" height="50px" viewBox="0 0 438.533 438.533"><path d="M409.133 109.203c-19.608-33.592-46.205-60.19-79.798-79.796C295.735 9.8 259.058 0 219.273 0c-39.78 0-76.47 9.8-110.063 29.407-33.595 19.604-60.192 46.2-79.8 79.796C9.8 142.8 0 179.49 0 219.267c0 39.78 9.804 76.463 29.407 110.062 19.607 33.59 46.204 60.188 79.8 79.797 33.596 19.605 70.282 29.407 110.062 29.407s76.47-9.802 110.064-29.407c33.593-19.602 60.19-46.206 79.795-79.798 19.602-33.597 29.402-70.285 29.402-110.063 0-39.782-9.8-76.472-29.4-110.064zM322.62 270.94c3.618 3.612 5.43 7.904 5.43 12.853 0 5.133-1.812 9.514-5.43 13.127l-25.692 25.7c-3.614 3.614-7.994 5.42-13.135 5.42-4.948 0-9.236-1.806-12.847-5.42l-51.676-51.68-51.678 51.68c-3.616 3.614-7.898 5.42-12.847 5.42-5.14 0-9.517-1.806-13.134-5.42l-25.696-25.7c-3.616-3.613-5.424-7.994-5.424-13.127 0-4.948 1.81-9.24 5.424-12.854l51.678-51.674-51.678-51.678c-3.616-3.612-5.424-7.898-5.424-12.847 0-5.14 1.81-9.516 5.424-13.133l25.697-25.693c3.618-3.616 7.995-5.424 13.135-5.424 4.95 0 9.23 1.81 12.847 5.424l51.678 51.674 51.676-51.674c3.61-3.616 7.898-5.424 12.847-5.424 5.14 0 9.52 1.81 13.135 5.424l25.693 25.693c3.618 3.617 5.43 7.994 5.43 13.134 0 4.95-1.812 9.236-5.43 12.848l-51.674 51.678 51.675 51.673z"/></svg>

              
            
!

CSS

              
                svg {
  cursor: pointer;
  position: absolute;
    left: 663px;
    top: 45%;
  }


              
            
!

JS

              
                var circle = $('svg'),
    tl = new TimelineLite({paused:true, reversed:true});

tl.to (circle, 2, {left:'20px'});

circle.click(function () {
     tl.reversed() ? tl.play() : tl.reverse();
        });
  
              
            
!
999px

Console