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

              
                .loading
  - (1..4).each do |i|
    .row
      - (1..4).each do |i|
        .point
              
            
!

CSS

              
                @import compass

$red: #ca3737
$blue: #4cd4ee
$bgColor: #111

html
  height: 100%

body
  background: $bgColor
  position: relative
  width: 6em
  height: 100%
  margin: 0 auto
  

.loading
  width: 6em
  height: 5em
  position: absolute
  text-align: center
  top: 40%

.point
  width: .6em
  height: .6em
  border-radius: 50%
  margin: 0 .35em .6em
  display: inline-block

@for $i from 1 through 25
  .point:nth-child(#{$i})
    animation: color #{($i*100) + 1000}ms infinite ease-in-out

  .row:nth-child(#{$i})
    animation: opacity #{($i*100) + 1000}ms infinite ease-in-out

@keyframes opacity
  from, to
    opacity: 0
  50%
    opacity: 1

@keyframes color
  from, to
    background: $red
    -webkit-filter: blur(1px)
  50%
    background: $blue
    -webkit-filter: blur(2px)
              
            
!

JS

              
                
              
            
!
999px

Console