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

            
              //https://dribbble.com/shots/6009731-Flipping-checkbox

input#cbx(type='checkbox')
label.cbx(for='cbx')
  .flip
    .front
    .back
      svg(width='16', height='14', viewBox='0 0 16 14')
        path(d='M2 8.5L6 12.5L14 1.5')

            
          
!

CSS

            
              .cbx
  -webkit-perspective: 20
  perspective: 20
  position: absolute
  top: 50%
  left: 50%
  margin: -12px
  border: 2px solid #E8E8EB
  background: #E8E8EB
  border-radius: 4px
  transform: translate3d(0,0,0)
  cursor: pointer
  transition: all .3s ease
  &:hover
    border-color: #0B76EF

.flip
  display: block
  transition: all .4s ease
  transform-style: preserve-3d
  position: relative
  width: 20px
  height: 20px
  
#cbx
  display: none
  &:checked + .cbx
    border-color: #0B76EF
    .flip
      transform: rotateY(180deg)

.front,
.back
  backface-visibility: hidden
  position: absolute
  top: 0
  left: 0
  width: 20px
  height: 20px
  border-radius: 2px

.front
  background: white
  z-index: 1

.back
  transform: rotateY(180deg)
  background: #0B76EF
  text-align: center
  color: white
  line-height: 20px
  box-shadow: 0 0 0 1px #0B76EF
  svg
    margin-top 3px
    fill none
    path
      stroke white
      stroke-width 2.5
      stroke-linecap round
      stroke-linejoin round
  
body
  -webkit-font-smoothing: antialiased
            
          
!

JS

            
              
            
          
!
999px

Console