JSFiddle - React, Tailwind, and code Playground
by Dug Sohn
HTML
<div class="terminal">
<span></span>
</div>
CSS
.terminal {
background-color:black;
width:200px;
height:200px;
overflow:auto;
color:#fff;
padding: 20px;
}
JavaScript
function typing(foo) {
$('.terminal').animate({ scrollTop: $(document).height() });
$('.terminal').append(foo);
}
setInterval(function() { typing('log '); }, 100);