+ 3
How do I make letters look like they are writing when the code is run
4 Respostas
+ 16
Make some kind of interval
var text = "Text to write";
var index = 0;
var interval = setInterval(function() {
if(index < text.length) {
document.getElementsByTagName("body")[0].innerHTML += text[index];
index++;
} else {
clearInterval(interval)
}
}, 500)
+ 4
Very cool Toni Isotalo thanks for the info i learned something new!!!🙂
+ 3
it will look like an animation that's what I mean