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

              
                
<div id="wrapper">
  
  <div class="header divider-diamond-bottom"><h1>Analyze</h1></div>
  
  <div class="diamond">
    <div class="skeleton"></div>
  </div>
  
  <div class="section divider-diamond-top divider-diamond-bottom"><h2>Section #1</h2></div>
  
  <div class="diamond">
    <div class="skeleton"></div>
  </div>
  
  <div class="section-2 divider-diamond-top"><h2>Section #2</h2></div>
</div>
              
            
!

CSS

              
                @import 'https://fonts.googleapis.com/css?family=Modak'

html,body
  width: 100%
  height: 100%
  display: flex
  justify-content: center
  align-items: center

*
  box-sizing: border-box
  
#wrapper
  background: #333333
  width: 100%
  height: 100%
  display: block
  
.header
  width: 100%
  height: 300px
  background: black
  display: flex
  justify-content: center
  align-items: center
  
h1
  color: white
  font-family: "Modak", sans-serif
  font-size: 7rem
  font-weight: 100
  
h2
  color: #333333
  font-family: "Modak", sans-serif
  font-size: 2rem
  font-weight: 100

.divider-diamond-bottom
  margin-bottom: -60px
  
.divider-diamond-top
  margin-top: -90px
  
.section
  width: 100%
  height: 400px
  background: white
  display: block
  padding: 5%
  &-2
    @extend .section
    background: gray
  
  
$diamondgray: lighten(black, 55%)
  
.diamond
  box-sizing: content-box
  margin: 0 auto
  width: 120px
  height: 120px
  position: relative
  display: block
  .skeleton
    box-sizing: content-box
    border-bottom: 30px solid $diamondgray
    border-left: 30px solid transparent
    border-right: 30px solid transparent
    height: 0
    width: 60px
    position: absolute
    &:after
      content: ''
      display: inline-block
      position: absolute
      top: 33px
      right: 0
      margin-right: -30px
      border-left: 60px solid transparent
      border-right: 60px solid transparent
      border-top: 87px solid $diamondgray
      width: 0
      height: 0
              
            
!

JS

              
                
              
            
!
999px

Console