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

              
                .cbx
  input#cbx(type='checkbox')
  label(for='cbx')
  svg(width='15' height='14' viewbox='0 0 15 14' fill='none')
    path(d='M2 8.36364L6.23077 12L13 2')
// Gooey
svg(xmlns='http://www.w3.org/2000/svg' version='1.1')
  defs
    filter#goo
      fegaussianblur(in='SourceGraphic' stddeviation='4' result='blur')
      fecolormatrix(in='blur' mode='matrix' values='1 0 0 0 0  0 1 0 0 0  0 0 1 0 0  0 0 0 22 -7' result='goo')
      feblend(in='SourceGraphic' in2='goo')



              
            
!

CSS

              
                $primary = #866efb
  
*
  box-sizing: border-box
  
input[type="checkbox"]
  -webkit-appearance: none
  -moz-appearance: none
  appearance: none
  -webkit-tap-highlight-color: transparent
  cursor: pointer
  margin: 0
  &:focus
    outline: 0

.cbx
  position: absolute
  width: 24px
  height: 24px
  //transform: scale(3)
  top: calc(50vh - 12px)
  left: calc(50vw - 12px)

  input
    position: absolute
    top: 0
    left: 0
    width: 24px
    height: 24px
    border: 2px solid #bfbfc0
    border-radius: 50%
  
  label
    width: 24px
    height: 24px
    background: none
    border-radius: 50%
    position: absolute
    top: 0
    left: 0
    -webkit-filter: url(#goo)
    filter: url(#goo)
    transform: trasnlate3d(0,0,0)
    pointer-events: none
    
  svg
    position: absolute
    top: 5px
    left: 4px
    z-index: 1
    pointer-events: none
    path
      stroke: white
      stroke-width: 3
      stroke-linecap: round
      stroke-linejoin: round
      stroke-dasharray: 19
      stroke-dashoffset: 19
      transition: stroke-dashoffset .3s ease
      transition-delay: .2s

  input:checked
    + label
      animation: splash .6s ease forwards
      + svg path
        stroke-dashoffset: 0
       
@keyframes splash
  40%
    background: $primary
    box-shadow: 0 -18px 0 -8px $primary, 16px -8px 0 -8px $primary, 16px 8px 0 -8px $primary, 0 18px 0 -8px $primary, -16px 8px 0 -8px $primary, -16px -8px 0 -8px $primary
  100%
    background: $primary
    box-shadow: 0 -36px 0 -10px transparent, 32px -16px 0 -10px transparent, 32px 16px 0 -10px transparent, 0 36px 0 -10px transparent, -32px 16px 0 -10px transparent, -32px -16px 0 -10px transparent
  
  
              
            
!

JS

              
                
              
            
!
999px

Console