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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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.


<div class="container">
  <h1><span class="slabtext">You don't </span><span class="slabtext"> get to </span><span class="slabtext">500 million</span><span class="slabtext"> friends </span><span class="slabtext">without making </span><span class="slabtext">a few </span><span class="slabtext">enemies</span></h1>


                @import "compass/css3";
body {
     ont: 16px/1.8 "Open Sans", "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
.container {
  width: 80%;
  margin: 2em auto;
  max-width: 600px;
  background: url('') top center no-repeat;
  background-size: cover;
  background-color: black;

h1 {
   text-transform: uppercase; 
  font-family: futura;
  font-size: 2em;
  color: #fff;
  font-weight: 300;

.slabtexted .slabtext
    display: -moz-inline-box;
    display: inline-block;
    white-space: nowrap;
.slabtextinactive .slabtext
    display: inline;
    white-space: normal;
    font-size: 1em !important;
    letter-spacing: inherit !important;
    word-spacing: inherit !important;
    *letter-spacing: normal !important;
    *word-spacing: normal !important;
.slabtextdone .slabtext
    display: block;
            font-family:"Oswald", "Arial Black", Gadget, sans-serif;


    // Function to slabtext the H1 headings
    function slabTextHeadlines() {
            // Don't slabtext the headers if the viewport is under 380px
    // Load fonts using google font loader
    var WebFontConfig = {
        google: { families: [ 'Open+Sans:400,700:latin', 'Oswald:700:latin' ] },
        // slabText the headers when the font has finished loading (or not)
        fontactive: slabTextHeadlines,
        fontinactive: slabTextHeadlines
    (function() {
        var wf = document.createElement('script');
        wf.src = '';
        wf.type = 'text/javascript';
        wf.async = 'true';
        var s = document.getElementsByTagName('script')[0];
        s.parentNode.insertBefore(wf, s);