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

              
                 <div class = "poemBody">

             <h1>

             <span class='slabtext'>In</span>
         <span class='slabtext'>     Side </span>
         <span class='slabtext'>Each of us </span>
         <span class='slabtext'> is a portal to God and the sun </span>
         <!-- <span class='slabtext'>it opens when we're we peeled back </span>
         <span class='slabtext'>beneath such hurt and fear </span>
         <span class='slabtext'> its outside the bounds of what screams in the mirror</span> -->
         <span class='slabtext'>We’ve mistaken our weapons and masks </span>
           <span class='slabtext'>For our mouths and lungs </span>
           <span class='slabtext'>Confused what’s happened to us </span>
           <span class='slabtext'> For what we’ve become</span>

         </h1>
       </div>
           <div class = "poemTitle">
             <div data-lining class = "vtxt">
<p>
          We humans<br /> often mistake</br> Our portals of possibility</br>
         For the certainty of a sunset
</p>
           </div>

</div>

              
            
!

CSS

              
                
body {
/*background-color: #0F3B72;
color: #fffff8;*/
background:#fcfcfc;
       color:#444;
       width:92%;
           padding:20px 0;
           margin:0 auto;
           transform: scale(.35);
  transform-origin: 0 0;

}

.poemBody {
  position:absolute;
  width: 66%;
}

.poemTitle{
  position:absolute;
  left: 75%;
  /*width: 66%;*/
}

.vtxt {
  /*position:absolute;*/
    font-size: 4em;
    color: #333;
    -webkit-writing-mode: vertical-rl;
    writing-mode: vertical-rl;
}
.vtxt .line:first-of-type {
    font-size: 5.5em;
    color: #D0496A;
}
.vtxt .line:first-of-type small {
    color: #333;
    font-size: .6666666em;
}


.small{
  font-size: 9px;
}
.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;
    }

              
            
!

JS

              
                   function slabTextHeadlines() {
         $("h1").slabText({
             // Don't slabtext the headers if the viewport is under 380px
             "viewportBreakpoint":380
         });
     };
     // 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 = 'https://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
         wf.type = 'text/javascript';
         wf.async = 'true';
         var s = document.getElementsByTagName('script')[0];
         s.parentNode.insertBefore(wf, s);
     })();
              
            
!
999px

Console