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 viewBox="0 0 600 400">
  
  <circle cx="110" cy="110" r="100" fill="green"/>
  <path class="part01 grey" d="M 110 110 V10c55.192.001 100 44.808 100 100H110z" fill="#5a5a5a"/>
  <path class="green" d="M 110 10v99.797h99.79L210 110c0 55.192-44.808 100-100 100S10 165.192 10 110 54.808 10 110 10l.210z" fill="green"/>

  <circle cx="110" cy="110" r="1" fill="black"/>

  
  <circle cx="320" cy="110" r="100" fill="green"/>
  <path class="part02 grey02" d="M 320 10c55.192.001 100 44.809 100 100s-44.808 99.999-100 100V10z" fill="#5a5a5a"/>
  <path class="green"  d="M 320 10v200c-55.192 0-100-44.808-100-100S264.808 10 320 10z" fill="green"/>

</svg>
              
            
!

CSS

              
                
body{
  background-color:grey;
}
              
            
!

JS

              
                
gsap.set('.part01', {rotation:-180, svgOrigin:'110 110'})
gsap.set('.part02', {rotation:-180, svgOrigin:'320 110'})

gsap.timeline({delay:1, defaults:{duration:3, ease:'power1.inOut'}})
  .to('.grey', {rotation:0, svgOrigin:'110 110'})
  .to('.grey02', {rotation:90, svgOrigin:'320 110'})

              
            
!
999px

Console