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 includes JSX processing.

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


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


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.


  a href="#play"
  a href="#pause"
  a href="#rw"
  a href="#ff"
  a href="#stop"


                @import compass

$bg: #f40
$fg: #f90

body, html
  height: 100%
  width: 100%
  background: $bg

  position: absolute
  top: 50%
  left: 50%
  margin: -25px 0 0 -175px
  width: 350px

  cursor: pointer
  position: relative
  float: left	
  height: 50px
  width: 50px
  margin: 0 10px
  background: $fg
  +transition(box-shadow .3s)
  &:before, &:after
    content: ''
    position: absolute
  & div:hover, & div:target
    +box-shadow(0 0 0 8px $bg, 0 0 0 10px $fg)

#play, #ff, #rw
  &:before, &:after
    height: 0
    width: 0
  border-left: 22px solid $bg
  border-top: 11px solid transparent
  border-bottom: 11px solid transparent
  top: 14px
  left: 18px

#pause:before, #pause:after
  height: 20px
  width: 8px
  top: 15px
  left: 14px
  background: $bg
  left: 28px

#rw, #ff
  &:before, &:after
    top: 18px
    border-top: 7px solid transparent
    border-bottom: 7px solid transparent
  &:before, &:after
    border-right: 14px solid $bg
    left: 10px
    left: 22px

  &:before, &:after
    border-left: 14px solid $bg
    left: 14px
    left: 26px

  height: 22px
  width: 22px
  background: $bg
  top: 14px
  left: 14px