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

              
                .box
  h1
    span.letter.p p
    span.letter.r r
    span.letter.i i
    span.letter.d d
    span.letter.e e
              
            
!

CSS

              
                dur = .5s
cb = cubic-bezier(.8,-0.69,.35,1.6)
bxs(color)
  box-shadow -10px 10px 0 darken(color, 50%)

*
  box-sizing border-box

body
  background #0fa
  display flex
  align-items center
  justify-content center
  height 100vh
  width 100vw

.box
  height 11rem
  //overflow hidden
  
  
.letter
  background-color indigo
  display inline-block
  height 10rem
  width 4rem
  margin-right 5rem
  position relative
  text-indent -100rem
  transform translateY(10rem)

.p
  background-color tomato
  animation dropin dur cb forwards
  bxs(tomato)
  
  &::after
    animation dropin dur cb forwards .25s
    
    background-color tomato
    border-radius 50%
    content ''
    height 6rem
    width 6rem
    position absolute
    right -3rem
    top 0
    

.r
  background-color orange
  animation dropin dur cb forwards .5s
  bxs(orange)
  
  &::after
    animation dropin dur cb forwards .75s
    background-color orange
    border-radius 50%
    content ''
    height 6rem
    width 6rem
    position absolute
    right -3rem
    top 0
    
  &::before
    animation dropin dur cb forwards .75s
    content ''
    width: 0
    height: 0
    border-style: solid
    border-width: 4rem 0 0 3rem
    border-color: transparent transparent transparent orange
    position absolute
    bottom 0
    right -3rem
    

.i
  background-color green
  bxs(green)
  margin-right 2rem
  animation dropin dur cb forwards 1s
  
  
.d
  background-color blue
  animation dropin dur cb forwards 1.5s
  bxs(blue)
  
  &::after
    animation dropin dur cb forwards 1.75s
    background-color blue
    border-radius 50%
    content ''
    height 10rem
    width 6rem
    position absolute
    right -3rem
    top 0
.e
  background-color indigo
  animation dropin dur cb forwards 2s
  bxs(violet)
  
  &::after
    animation dropin dur cb forwards 2.25s
    background: linear-gradient(-45deg, transparent 50%, indigo 50%)
    background-size: 3.4rem 3.4rem
    content ''
    height 10rem
    width 3.3rem
    position absolute
    right -3.2rem
    top 0
    

@keyframes dropin
  0%
    transform translateY(10rem)
  100%
    transform translateY(0)
    
    
@keyframes pushin
  0%
    right 0
  100%
    right -3rem
    
    
    
              
            
!

JS

              
                
              
            
!
999px

Console