If i understand your question properly, Is this what you are looking for?
<!DOCTYPE html>
<html>
<body onload="typeWriter()">
Auto Text typer demo with css and js
<p id="demo"></p>
<script>
var i = 0;
var txt = 'Lorem ipsum dummy text blabla.';
var speed = 50;
function typeWriter() {
if (i < txt.length) {
document.getElementById("demo").innerHTML += txt.charAt(i);
i++;
setTimeout(typeWriter, speed);
}
}
</script>
</body>
</html>