Pen Settings



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


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


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.


                #wrapper"#") menu


                // You can play with it:
$size: #{(2/16)}em
$height: 3em

  position: relative
  overflow: hidden
  transition: color .2s ease .2s
  display: inline-block
  color: inherit
  text-decoration: none
  text-transform: uppercase
  line-height: $height // this could be normal 1.5
  font-size: $height // just for this demo, same as above (1em, 16px)
  &:before, &:after
    content: ''
    position: absolute
    transition: all .2s ease
    box-sizing: border-box
    width: $height
    height: $height
    left: 50%
    margin: -$size -#{$height/2}
    border: $size solid black
    bottom: 100%
    transform-origin: 85% 65%
    top: 100%
    transform-origin: 17% 37%
    color: transparent
    transition: color .2s ease  
    &:before, &:after
      transition: all .2s ease .2s
      transform: rotate(-45deg)    

    fill: black
  justify-content: center
  align-items: center
  align-content: center
  text-align: center
  display: flex
  min-height: 320px