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

              
                <link href="https://fonts.googleapis.com/css?family=Oswald:300,500,600,700" rel="stylesheet">


<!-- <h1 id = "sub">A Language That Questions Itself</h1> -->
 <div id="container"> 
        <div id="txtlzr">
   </div>
   
</div>
    

              
            
!

CSS

              
                body {
  background: #fcfcfc;
  font-family: 'Oswald', sans-serif;
  color: #444;
  font-size: 16px;
  border: 5px solid #444;
  width: 95%;
  height: 250px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  
}

html{
    text-align: center;
}

#txtlzr
        {
            font-size: 260%;
/*             width: 700px; */
            height: 300px;
            margin-left: 50px;
          font-family: 'Oswald';
/*           text-align: center; */
            margin-top: -50px;
/*             border: 1px solid red; */
        }

/* trying to figure out how to center horizintally and vertically */
.thing {
/* position: absolute;
  margin-top: auto;
  margin-bottom: auto; */
}

h1 {
  font-size: 260%;
  line-height: 1.2em;
/*   text-align: center; */
  padding-top: 5%;
  padding-left: 27%;
}
              
            
!

JS

              
                var list = ["How Does A Poem Get Someone Out Of Prison?",
"How Does A Poem Get A Person Out Of Prison?",
"How Does A Poem Get My Friend Out Of Prison?",
"How Does A Poem Get My Brother Out Of Prison?",
"How Does A Poem Get Christopher Lester Hollis Out Of Prison?",
"How Does A Poem Get Everyone Out Of Prison?"]
    
    // ['first blurb', 'second blurb', 'third blurb'];  // list of blurbs

var txt = $('#txtlzr');  // The container in which to render the list

var options = {
  duration: 1000,          // Time (ms) each blurb will remain on screen
  rearrangeDuration: 1000, // Time (ms) a character takes to reach its position
  effect: 'random',        // Animation effect the characters use to appear
  centered: true           // Centers the text relative to its container
}

txt.textualizer(list, options); // textualize it!
txt.textualizer('start'); // start

              
            
!
999px

Console