NicBinc,
<div></div>
<script>
function typeText(k, d, f, g) {
var b, a = d.shift(),
e = f,
h = performance.now();
d.push(a);
a = a.split("");
b = document.createTextNode("");
k.appendChild(b);
requestAnimationFrame(function l(c) {
a.length || (a = d.shift(), d.push(a), a = a.split(""), e = g);
c = (c - h) / e;
1 < c && (c = 1);
1 == c && (e == g && (b.data = ""), h = performance.now(), b.data += a.shift(), e = f);
requestAnimationFrame(l)
})
};
var div = document.getElementsByTagName("div")[0];
typeText(div, ["ololo ololo lololo lolo","всяка фигня","Вы прочитали это важное сообщение"], 100, 3000);
</script>