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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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 Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

HTML

              
                <div class="wrap">
  <div class="extrusion square" tabindex="0">
    
  </div>
  <div class="extrusion preactuation square">
    
  </div>
  <div class="extrusion square sunken">
    
  </div>
</div>
              
            
!

CSS

              
                body {
  background: #e8eeec;
}

.wrap {
  display: flex;
  margin: 10% 20%;
}

.square {
  width: 300px;
  height: 300px;
}

.extrusion {
  border-radius: 50px;
  background: linear-gradient(145deg,#f8fffd,#d1d6d4);
  box-shadow: 30px 30px 60px #c5cac9, -30px -30px 60px white, inset -10px -7px 24px 0px rgba(0,0,0,0.1), inset 18px 21px 24px 0px white;
  margin: 5%;
  transition: 0.25s box-shadow ease-in-out;
}

.extrusion:hover, .preactuation {
  box-shadow: 15px 15px 30px #c5cac9, -15px -15px 30px white, inset -10px -7px 24px 0px rgba(0,0,0,0.1), inset 18px 21px 24px 0px white;
  margin: 5%;
}

.extrusion:focus, .sunken {
  outline: none;
  /* We keep the same number of box-shadow entries, zeroing the white shading, to enable transitions */
  box-shadow: 0 0 4px #c5cac9, 0 0 0 transparent, inset -10px -7px 24px 0px white, inset 18px 21px 24px 0px rgba(0,0,0,0.1);
}
              
            
!

JS

              
                
              
            
!
999px

Console