JSFiddle - React, Tailwind, and code Playground
HTML
<div></div>
CSS
div{
max-width:500px;
max-height:500px;
overflow: hidden;
background-color: aqua;
word-wrap: break-word;
}
JavaScript
var i = 0,
pi = '3.1415926535897932384626433832795049445',
max = pi.length,
div = $('div'),
timer = setInterval(function() {
div.append(pi.charAt(i++));
i == max && clearInterval(timer);
}, 50);