TypeWriter is an easy way to type out text on a page.

Letter by letter, fixed interval.

var tw = new TypeWriter('.example-1-output', {
  text: 'It is a pity my intervals are the same each time.',
  interval: 100
});
tw.type();

Letter by letter, random natural human interval.

var tw = new TypeWriter('.example-2-output', {
  text: 'I also love printing text. ' +
        'My intervals are randomised to ' +
        'look like a human is typing.',
  interval: 'human'
});
tw.type();

Word by word, fixed interval.

var tw = new TypeWriter('.example-3-output', {
  text: 'I LOVE PRINTING THE MOST!',
  interval: 500,
  words: true
});
tw.type();

Letter by letter, random natural human interval with bounds specified and a callback on completion.

var tw = new TypeWriter('.example-4-output', {
  text: 'Upper and lower bounds.',
  interval: 'human',
  lowerBound: 30,
  upperBound: 130
});
tw.type(function() {
  console.log('Finished typing now');
});

All options

var tw = new TypeWriter('selector', {
  text: 'Text', // Required.
  words: false, // Optional. Defaults to false.
  interval: 'human', // Optional. Defaults to human.
  lowerBound: 30, // Optional. Defaults to 30ms
  upperBound: 200 // Optional. Defaults to 200ms
});
Code is all on GitHub. Go check it out.