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.

            
              .cntr
  input#cbx.hidden-xs-up type="checkbox"/
  label.cbx for="cbx" 
  label.lbl for="cbx" Make Magic
            
          
!
            
              .cbx
  position relative
  top 1px
  width 17px
  height 17px
  border 1px solid #C8CCD4
  border-radius 3px
  vertical-align middle
  transition background .1s ease
  cursor pointer
  &:after
    content ''
    position absolute
    top 1px
    left 5px
    width 5px
    height 11px
    opacity 0
    transform rotate(45deg) scale(0)
    border-right 2px solid white
    border-bottom 2px solid white
    transition all .3s ease
    transition-delay .15s 

.lbl
  margin-left 5px
  vertical-align middle
  cursor pointer
  
#cbx:checked ~ .cbx
  border-color transparent
  background #6871F1
  animation jelly .6s ease
  &:after
    opacity 1
    transform rotate(45deg) scale(1)
   
@keyframes jelly
  from
    transform scale(1, 1)
  30%
    transform scale(1.25, 0.75)
  40%
    transform scale(0.75, 1.25)
  50%
    transform scale(1.15, 0.85)
  65%
    transform scale(.95, 1.05)
  75%
    transform scale(1.05, .95)
  to
    transform scale(1, 1)

.cntr
  position absolute
  top 50%
  left 0
  width 100%
  text-align center
            
          
!
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