Pen Settings



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


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.


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.


  .percentage.has-tip style='width: 50%' data-perc="50%"


                @import bourbon

$primary-color: tomato
  font-size: 15px
  padding: 4em
  width: 30em 
  height: 1em
  position: relative
  border-radius: 0.5em
  background: #f2f2f2
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1)
    position: relative
    font-size: 1em
    background: $primary-color
    height: 1em
    border-radius: 0.5em

    content: ''
    position: absolute
    opacity: 0
    // Arrow to top
    bottom: -10px
    right: -5px
    border: 5px solid
    border-color: transparent transparent $primary-color transparent
    transition: opacity 0.1s
    opacity: 1
    // Tooltip
    content: attr(perc)
    bottom: 0
    right: 0
    white-space: nowrap
    padding: 0.6em 1em
    border-radius: 2em
    line-height: 1
    color: #fff
    background: $primary-color
    transform:  translateX(50%) translateY(100%)
    transition: transform 0.2s, opacity 0.1s
    opacity: 1
    transform: translateX(50%) translateY(100%) translateY(10px)



                $bar = $('.percentage')
perc = 0

update = () ->
  $bar.css("width", perc+'%')
  $bar.attr("perc", Math.floor(perc)+'%')
  perc +=0.2
  if Math.floor(perc) == 5
    $bar.addClass 'active'    
  if Math.floor(perc) == 95
    $bar.removeClass 'active'    
  if perc >= 100
    perc = 0

start = () ->
  run = setInterval( update,10)