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

              
                <div></div>
              
            
!

CSS

              
                div {
  height: 300px;
  width: 300px;
  margin: 0 auto;
  background: black;
  border-radius: 50%;
  position: relative;
  background-image: radial-gradient(ellipse at 200px 110px, white 2px, transparent 15px), radial-gradient(ellipse at 190px 119px, black 25px, transparent 25px), radial-gradient(ellipse closest-corner at 190px 125px, darkgrey 10px, transparent 33px), radial-gradient(ellipse closest-corner at 190px 120px, black 29px, transparent 29px), radial-gradient(ellipse at 135px 111px, white 1px, transparent 14px), radial-gradient(ellipse at 125px 119px, black 24px, transparent 24px), radial-gradient(ellipse closest-corner at 125px 125px, darkgrey 13px, transparent 33px), radial-gradient(ellipse closest-corner at 125px 120px, black 33px, transparent 33px), radial-gradient(ellipse closest-corner at 100px 120px, #e8e8e8 55px, transparent 55px), radial-gradient(ellipse closest-corner at 100px 120px, #000 59px, transparent 59px), radial-gradient(ellipse farthest-corner at 210px 120px, #e8e8e8 55px, transparent 55px), radial-gradient(ellipse farthest-corner at 210px 119px, #000 59px, transparent 59px), linear-gradient(to bottom, transparent 30px, black 90px), radial-gradient(circle at 150px 100px, white 90px, transparent 100px);
  box-shadow: 0 160px 0 27px black, 0 200px 0 29px grey, 0 180px 0 40px black, 0 18px 0 10px black;
}

div:before {
  content: '';
  height: 550px;
  width: 380px;
  background: rgba(22, 33, 11, .0);
  position: absolute;
  top: 0px;
  left: -40px;
  z-index: 9999;
  background-image: radial-gradient(circle at 50% 360px, rgba(255, 255, 255, 1) 160px, transparent 170px);
}

div:after {
  content: '';
  height: 0px;
  width: 0px;
  background: transparent;
  position: absolute;
  border-top-left-radius: 50%;
  border-top-right-radius: 50%;
  border-bottom-left-radius: 4%;
  border-bottom-right-radius: 4%;
  border-top: 70px solid #ffa300;
  border-right: 60px solid transparent;
  border-bottom: 0px solid transparent;
  border-left: 60px solid transparent;
  top: 165px;
  left: 90px;
  box-shadow: -100px 300px 0 10px rgba(255, 163, 0, 1), 100px 300px 0 10px rgba(255, 163, 0, 1);
  z-index: 9999;
}
              
            
!

JS

              
                
              
            
!
999px

Console