Is it possible to add a delay inside a forEach so you can see a slight delay as each span innerHTML is swapped out in order. At the moment my loop happens, the relative span gets injected but the loop is that quick that all the letters appear at the same time. Would be nice to delay each inject by 200ms if possible, I'm just drawing a blank on how to do this.
JS Snippet
function showCity() {
newStringArr = cities[i].split('');
var tickerSpans = ticker.children;
newStringArr.forEach(function(letter, idx) {
// Delay each assignment by 200ms?
tickerSpans[idx].innerHTML = letter;
});
i++;
if(i <= 2) {
setTimeout(function() {
randomWordInterval = setInterval(randomiser, SPEED, false);
}, PAUSE);
}
}