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

              
                #stuff
    .cloud
    .drop
    .drop
    .drop
    .drop
    .drop
    .drop
    .drop
    .drop
    .drop
    .drop
    .drop
    .drop
    .drop
    .drop
    .drop
    .drop
              
            
!

CSS

              
                @import compass

html,body
  background: #5D99B1
  overflow: hidden

.drop
  background: #fff
  width: 1px
  height: 20px
  top: -40px
  animation: fall 1.2s ease-in 0s infinite
  animation-fill-mode: both
  margin-right: 45px
  position: absolute
  animation-delay: 0.9s
  margin-left: 10px
  &:nth-child(even)
    top: -60px
  &:nth-child(3n - 1)
    top: 0px
  &:nth-child(3n + 1)
    margin-left: 40px
  &:nth-child(3n)
    margin-left: 80px!important
  &:nth-child(4n)
    margin-left: 120px!important
  &:nth-child(5) ~ .drop
    animation-delay: 0.6s!important
    left: 30px
  &:nth-child(8) ~ .drop
    animation-delay: 0.3s!important
    left: 0px
  &:nth-child(12) ~ .drop
    animation-delay: 0s!important
    left: 30px
    
#stuff
  position: absolute
  margin: auto
  top: 100px
  left: 0
  right: 0
  bottom: 0
  width: 200px
  //&:hover
    //animation: float 6s linear 0s 
    //animation-fill-mode: both
  
.cloud
  height: 110px
  width: 110px
  border-radius:  150px 150px 150px 0
  position: relative
  &, &:before, &:after
    box-shadow: inset 20px 10px 40px -32px rgba(0,0,0,0.75)
    background: #fff
  &:before, &:after
    content: ' '
    display: block
    position: absolute
    bottom: 0px
  &:before
    height: 60px
    width: 60px
    border-radius:  150px
    left: -30px
  &:after
    height: 130px
    width: 130px
    border-radius:  150px 150px 150px 0
    right: -75px
    z-index: -1
    
@keyframes fall
  0%
    margin-top: 90px
    opacity: 1
  60%
    opacity: 1
  100%
    margin-top: 500px
    opacity: 0
  
@keyframes float
  0%
    left: 0%
  50%
    left: 100%
  50.0001%
    left: -120%
  100%
    left: 0%
              
            
!

JS

              
                
              
            
!
999px

Console