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

              
                <!-- WeSwap scrollbars -->

<div class="weswap-current"><p>Current scrollbar style.</p><p>Yao movies pizza bacon in bart puking rainbows search facebook keyboard scumbag. Blizzard one does not simply in class monday basic math gentlemen gasp crying 140% all the things. Avengers creepy me gusta humor just finals hulk if you know what i mean no bad cuteness overload cool people. Eat rebecca black super rage happy unsave close enough y u no really? 9000 monocle homework peter griffin architect essay le me brother le derp jackie chan forever alone. Fun you don't say? Nother To Do Here freddie mercury panda pokeman mom lois cereal guy bear too mainstream female. On amnesia genius dad computer avenger rainbow tank.</p></div>

<div class="weswap-new"><p>New scrollbar style.</p><p>Yao movies pizza bacon in bart puking rainbows search facebook keyboard scumbag. Blizzard one does not simply in class monday basic math gentlemen gasp crying 140% all the things. Avengers creepy me gusta humor just finals hulk if you know what i mean no bad cuteness overload cool people. Eat rebecca black super rage happy unsave close enough y u no really? 9000 monocle homework peter griffin architect essay le me brother le derp jackie chan forever alone. Fun you don't say? Nother To Do Here freddie mercury panda pokeman mom lois cereal guy bear too mainstream female. On amnesia genius dad computer avenger rainbow tank.</p></div>
              
            
!

CSS

              
                body {
  font-family:sans-serif;
  height:100%;
  margin:0 auto;
  width:600px;
}

.weswap-current,
.weswap-new {
  display:inline-block;
  height:200px;
  margin:10px 40px;
  padding:5px;
  overflow:hidden;
  overflow-y:scroll;
  width:200px;
}

.weswap-current::-webkit-scrollbar {
  width: 10px;
}
 
.weswap-current::-webkit-scrollbar-track {
  background-color:#edeadf;
  border-radius: 10px;
}
 
.weswap-current::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background-color:#ffc72e;
}

.weswap-new::-webkit-scrollbar {
  width: 10px;
}
 
.weswap-new::-webkit-scrollbar-track {
  background-color:#5A5D66;
  border-radius: 10px;
}
 
.weswap-new::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background-color:#ffc72e;
}
              
            
!

JS

              
                
              
            
!
999px

Console