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

              
                .loading
  .loading-circle.loading-row1.loading-col3
  - for (var i = 2; i <= 4; ++i)
    div(class="loading-circle loading-row2 loading-col#{i}")
  - for (var i = 1; i <= 5; ++i)
    div(class="loading-circle loading-row3 loading-col#{i}")
  - for (var i = 2; i <= 4; ++i)
    div(class="loading-circle loading-row4 loading-col#{i}")
  .loading-circle.loading-row5.loading-col3
              
            
!

CSS

              
                body
  background-color: #00ccff

.loading
  height: 85px
  left: 50%
  margin-left:  -42.5px
  margin-top: -42.5px
  position: absolute
  top: 50%
  transform: translateZ(0)
  width: 85px

.loading-circle
  animation: 2291ms loading infinite
  background-color: #fff
  border-radius: 50%
  height: 14px
  position: absolute
  transform: scale(0)
  width: 14px

for num in (1..13)
  .loading-circle:nth-child({num})
    animation-delay: num * 42ms

.loading-row1
  top: 1.3px

.loading-row2
  top: 18.95px

.loading-row3
  top: 36.55px

.loading-row4
  top: 54.2px

.loading-row5
  top: 71.85px

.loading-col1
  left: 1.25px

.loading-col2
  left: 18.85px

.loading-col3
  left: 36.5px
    
.loading-col4
  left: 54.15px

.loading-col5
  left: 71.8px

@keyframes loading
  0%
    transform: scale(0)
  27.28%
    transform: scale(1)
  36.36%
    transform: scale(0.857)
  54.55%
    transform: scale(0.857)
  63.64%
    transform: scale(0)
  100%
    transform: scale(0)
              
            
!

JS

              
                
              
            
!
999px

Console