JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://rivario.com/happynewyear/typewriter-bundle.js"></script>
<div id="typewriter-wrapper" class="centered">
<pre><span id="typewriter" class="typewriter"></span></pre>
</div>
CSS
.typewriter {
white-space: pre-wrap;
margin-right: -.2em;
}
.caret {
background: #999;
}
JavaScript
var typewriter = require('typewriter');
var twSpan = document.getElementById('typewriter');
var tw = typewriter(twSpan).withAccuracy(100)
.withMinimumSpeed(5)
.withMaximumSpeed(17)
.build();
tw.wait(12).put('Linux debian 3.19.0-eudyptula-00011-g53262d1-dirty #44 SMP Thu Jan 1 19:31:52 EST 2015 x86_64<br/><br/>The programs included with the Debian GNU/Linux system are free software;<br/>the exact distribution terms for each program are described in the<br/>individual files in /usr/share/doc/*/copyright.<br/><br/>Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent<br/>permitted by applicable law.<br/>Last login: Thu Jan 1 22:39:05 2015 from 172.16.84.1<br/>').wait(66).put('root@debian:~# ').wait(2259).put('l').wait(191).put('s').wait(87).put(' ').wait(104).put('-').wait(71).put('l').wait(192).put('<br/>').wait(2).put('total 28').wait(0).put('<br/>').wait(0).put('-rw-r----- 1 root root 437 Jan 1 08:02 coding_style.c').wait(0).put('<br/>').wait(0).put('-rw-r--r-- 1 root root 8266 Dec 23 02:52 diff.patch').wait(0).put('<br/>').wait(0).put('-rw-r----- 1 root root 377 Jan 1 08:02 hello.c').wait(0).put('<br/>').wait(0).put('drwxr-xr-x 3 root root 4096 Jan 1 18:07 task1').wait(0).put('<br/>').wait(0).put('drwxr-xr-x 3 root root 4096 Jan 1 20:26 task5').wait(0).put('<br/>').wait(0).put('root@debian:~# ').wait(1099).put('logout').wait(0).put('<br/>').wait(0).put('')