cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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

Looking for quick-add? Try the external resource search, it's quicker and gives you access to the most recent version of thousands of libraries. ☝️

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Looking for quick-add? Try the external resource search, it's quicker and gives you access to the most recent version of thousands of libraries. ☝️

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

            
              <div class="articulate-area">
  <button onclick="speak('article')">Speak All</button>
  <button onclick="speak('div.intro')">Speak Intro</button>
  <button onclick="speak('div.speech')">Speak Speech</button>
  <button onclick="pause()">Pause</button>
  <button onclick="resume()">Resume</button>
  <button onclick="stop()">Stop</button>
</div>

<article>
  <div class="intro">
    <h1>The Gettysburg Address</h1>
    <h2>Delivered by Abraham Lincoln on November 19, 1863</h2>
    <h3>Beginning with the iconic phrase <q>Four score and seven years ago,</q> this speech is generally regarded as the most famous in American history.</h3>
  </div>
 
  <div class="speech">
    <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/915932/lincoln.jpg" alt="A Portrait of the Sixteenth President">

    <p>Four score and seven years ago our fathers brought forth on this continent, a new nation, conceived in Liberty, and dedicated to the proposition that all men are created equal.</p>    
    <p>Now we are engaged in a great civil war, testing whether that nation, or any nation so conceived and so dedicated, can long endure. We are met on a great battle-field of that war. We have come to dedicate a portion of that field, as a final resting place for those who here gave their lives that that nation might live. It is altogether fitting and proper that we should do this.</p>
    <p>But, in a larger sense, we can not dedicate &mdash; we can not consecrate &mdash; we can not hallow &mdash; this ground. The brave men, living and dead, who struggled here, have consecrated it, far above our poor power to add or detract. The world will little note, nor long remember what we say here, but it can never forget what they did here. It is for us the living, rather, to be dedicated here to the unfinished work which they who fought here have thus far so nobly advanced. It is rather for us to be here dedicated to the great task remaining before us &mdash; that from these honored dead we take increased devotion to that cause for which they gave the last full measure of devotion &mdash; that we here highly resolve that these dead shall not have died in vain &mdash; that this nation, under God, shall have a new birth of freedom &mdash; and that government of the people, by the people, for the people, shall not perish from the earth.</p>
  </div>
</article>
            
          
!
            
              body {
  width: 95%;
  max-width: 800px;
  font-family: tahoma;
  background-color: #eee;
  padding: 20px 0 20px 0;
  margin: 0 auto 0 auto;
}

div.speech img {
  float: left;
  width: 20%;
  margin: 5px 10px 5px 0;
}

h1 {
  font-size: 22px;
  text-align: center;
  margin: 0 0 10px 0;
}

h2 {
  font-size: 16px;
  text-align: center;
  margin: 0 0 10px 0;
}

h3 {
  font-size: 16px;
  font-weight: normal;
  text-align: center;
  margin: 0 0 10px 0;
}

p {
  font-size: 14px;
  line-height: 1.4;
}

button {
  margin: 0 5px 8px 0;
}

div.articulate-area {
  font-family: monospace;
  font-size: 14px;
  padding: 0 0 15px 0;
  border-bottom: 1px dotted #666;
  margin: 0 0 20px 0;
  text-align: center;
}
            
          
!
            
              function speak(obj) {
  $(obj).articulate('speak');
};

function pause() {
  $().articulate('pause');
};

function resume() {
  $().articulate('resume');
};

function stop() {
  $().articulate('stop');
};
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console