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.table
  div.cell

    div.gmb-loader
      div
      div
      div


              
            
!

CSS

              
                $gmb-loader-size: 120px
$gmb-loader-color: #56C4B4

.gmb-loader

  font-size: 0
  display: inline-block
  position: relative
  height: $gmb-loader-size
  width: $gmb-loader-size
  
  div
    
    background: $gmb-loader-color
    width: $gmb-loader-size/4
    height: $gmb-loader-size/4
    border-radius: $gmb-loader-size/4
    position: absolute
    animation: gmb-bounce 1.75s infinite
    top: 50%
    margin-top: -$gmb-loader-size/8
      
    &:nth-child(2)
      animation-delay: 0.25s
      left: 50%
      margin-left: -$gmb-loader-size/8
     
    &:nth-child(3)
      animation-delay: 0.5s
      right: 0

@keyframes gmb-bounce
  10%
    transform: translate3d(0, $gmb-loader-size/4, 0)
    animation-timing-function: cubic-bezier(.5, 0, .5, 1)
    height: $gmb-loader-size/4
  14%
    height: $gmb-loader-size*3/4
  15%
    height: $gmb-loader-size/4
    transform: translate3d(0, -$gmb-loader-size/2, 0)
    animation-timing-function: cubic-bezier(0.8, 0, .8, 1)
  35%
    transform: translate3d(0, 0, 0)

    
    
    
    
body, html
  height: 100%
  
body
  margin: 0
  background: #e8ddca
  
.table
  display: table
  width: 100%
  height: 100%
  text-align: center
  .cell
    display: table-cell
    vertical-align: middle
              
            
!

JS

              
                
              
            
!
999px

Console