JSFiddle - React, Tailwind, and code Playground
by mcsf
HTML
We are <span id=s>here</span>
JavaScript
const words = ['here', 'there'];
let wid = 0;
function next() {
wid = (wid + 1) % words.length;
while (s.innerText) {
s.innerText = s.innerText.substring(0, )
}
const word = words[idx];
for (let i = 0; i < word.length; i++) {
}
}
next();