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.


                <h1>Typewriter Effect Demo</h1>
<p class="typewriter">I like <span id="space"></span><span class="blinker"></span>.</p>


                body {
  background: black;

* {
  font-family: 'Calibri', sans-serif;
  color: #eee;

.typewriter, .typewriter * {
  font-family: monospace;
  font-size: 14pt;

#space {
  color: lawngreen;

.blinker {
  display: inline-block;
  position: relative;
  margin: -1px 0 -1px -1px;
  top: 3px;
  left: 2px;
  width: 1px;
  height: 14pt;
  background: #eee;
  opacity: '0';

#text-holder {
  background: #eee;
  border: 1px solid #ddd;
  border-radius: 2px;
  font-family: monospace;
  font-size: 1.2em;



                $(document).ready(function() {
  var phraseList = ['green eggs and ham', 'to dance', 'making the world a better place through minimal message-oriented transport layers'];
  // zero all of the counters
  var listIdx = 0;
  var letterIdx = 0;
  var timer = 0;
  var blink = 0;
  // set the timing
  var clockTick = 100; // milliseconds
  var pause = 30; // number of clock ticks to pause
  var blinkFreq = 6; // number of clock ticks per blink of the cursor
  setInterval(function () {
    if (blink < blinkFreq) {
    } else {
      var newOpacity = $('.blinker').css('opacity') === '0' ? '1' : '0';
      $('.blinker').css('opacity', newOpacity);
      blink = 0;
    if (listIdx === phraseList.length) {
      listIdx = 0;
    if (timer === pause) {
      letterIdx = 0;
      timer = 0;
    } else if (letterIdx === phraseList[listIdx].length) {
    } else {

  }, clockTick);