Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

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

Packages

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.

Behavior

Auto Save

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

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

CSS

              
                @import compass

$bg: #f40
$fg: #f90

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

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

div
  cursor: pointer
  position: relative
  float: left	
  height: 50px
  width: 50px
  margin: 0 10px
  background: $fg
  +border-radius(25px)
  +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
    
#play:before
  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
#pause:after
  left: 28px

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

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

#stop:before
  height: 22px
  width: 22px
  background: $bg
  top: 14px
  left: 14px
              
            
!

JS

              
                
              
            
!
999px

Console