cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation

     

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.

            
              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
            
          
!
            
              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
  
            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console