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.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

HTML

            
              <div class="wall">
  <div class="inner">
    <div class="slice"></div>
    <div class="slice"></div>
    <div class="slice"></div>
    <div class="slice"></div>
    <div class="slice"></div>
    <div class="slice"></div>
    <div class="slice"></div>
    <div class="slice"></div>
    <div class="slice"></div>
    <div class="slice"></div>
    <div class="slice"></div>
    <div class="slice"></div>
  </div>
</div>
            
          
!

CSS

            
              intrinsic-ratio-box($ratio)
  height 0
  padding-bottom $ratio
  position relative
  
  > div
    position absolute
    top 0
    left 0
    width 100%
    height 100%
    
fade-in-wall($cols, $rows, $aName = fadeInScale)
  display flex
  flex-wrap wrap
  
  .slice
    flex 1 1 (100% / $cols)
    background-size (100% * $cols)
    animation 4s $aName ease-in-out infinite
    
    $total = $cols * $rows
    for n in 1..$total
      &:nth-child({n})
        animation-delay .1s * (n - 1)
        background-position-x -100% * ((n - 1) % $cols)
        background-position-y -100% * floor((n - 1) / $cols)

.wall
  intrinsic-ratio-box 66.25%
  
.inner
  fade-in-wall(4, 3)
  
.slice
  background url(http://evereditor.com/image/1.jpg)
      
@keyframes fadeInScale
  0%
    transform scale(.8)
    opacity 0
    
  30%
    transform scale(1)
    opacity 1
    
  70%
    transform scale(1)
    opacity 1
    
  100%
    transform scale(.8)
    opacity 0
            
          
!

JS

            
              
            
          
!
999px

Console