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

              
                div.logo-container
  div.square.square-one.face-top
  div.square.square-two.face-top
  div.square.square-three.face-top
  div.square.square-four.side
  div.square.square-five.side-2
              
            
!

CSS

              
                body
  margin-top: 50px
  background: #f9f1e4
  
  
.logo-container
  width: 80px
  height: 180px
  margin: 0 auto
  position: relative

.square
  position: absolute
  width: 50px
  height: 50px
  left: 20px

.face-top
  transform: rotate(-45deg) skew(15deg, 15deg)

.side
  transform: rotate(-45deg) skew(15deg, 15deg)
  transform-origin: bottom left

.side-2
  transform: rotate(-45deg) skew(15deg, 15deg)
  transform-origin: top left
  
.square-one
  background: #dd1d35
  z-index: 5
  top: 104px
  animation: ascend-1 1s .5s 1 forwards
.square-two
  background: #e44a5d
  top: 104px
  z-index: 4
  animation: ascend-2 .8s .5s 1 forwards
  
.square-three
  background: #a61628
  top: 104px
.square-four
  background: #dd1d35
  top: 104px
  left: 44px
  animation: morph-1 0.6s .6s 1 forwards ease-in-out
  
.square-five
  background: #a61628
  top: 25px
  left: 0px
  opacity: 0
  animation: morph-2 0.6s 1.1s 1 forwards ease-in-out
  
@keyframes ascend-1
  0%
    top: 104px
  100%
    top: 0px
@keyframes ascend-2
  0%
    top: 104px
  100%
    top: 52px
@keyframes morph-1
  0%
    transform: rotate(-45deg) skew(15deg, 15deg)
  100%
    transform: rotate(-45deg) skew(-45deg, 15deg)
    height: 37px
    top: 118px
@keyframes morph-2
  0%
    transform: rotate(-45deg) skew(15deg, 15deg)
    opacity: 0
  98%
    opacity: 1
  100%
    top: 26px
    left: 1px
    transform: rotate(-15deg) skew(-15deg, -15deg)
    opacity: 1
  
              
            
!

JS

              
                
              
            
!
999px

Console