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

              
                .cloud-loading
              
            
!

CSS

              
                @import "compass"
$light : #FFCA35
*, *:after, *:before 
  @include box-sizing(border-box)
body
  background: #5644CD
  @include animation(light 2s linear infinite alternate)
.cloud-loading
  background: #fff
  width: 180px
  height: 100px
  position: relative
  margin: 150px auto
  @include border-radius(50px)
  &:after
    content: ''
    width: 150px
    height: 150px
    @include border-radius(100%)
    position: absolute
    background: #fff
    bottom: 0
    left: 50px
    z-index: -1
    @include box-shadow(-65px -30px 0 -15px $light)
    @include animation(sun 2s linear infinite alternate)  
  &:before
    content: ''
    position: absolute
    width: 0
    height: 25px
    background: $light
    top: 40px
    left: 20px
    @include border-radius(20px 0 0 20px)
    @include animation(progress 2s linear infinite alternate)
      
      
@include keyframes(progress)
  20%
    width: 0
  70%
    @include border-radius(20px 0 0 20px)
    width: 140px
  80%, 100% 
    width: 150px
    @include border-radius(20px)
@include keyframes(sun)
  20%
    @include box-shadow(-65px -30px 0 -15px $light)
  80% , 100%
    @include box-shadow(-25px 14px 0 -15px $light)
@include keyframes(light)
  20%
    background: #5644CD
  80%, 100%
    background: #342E70
              
            
!

JS

              
                
              
            
!
999px

Console