+ 2
Any one knows some javascript to animate a string letter by letter..
well..not the CSS nth-child() ..I want the letters to move around ..one by one maybe at some setInterval() and I want to create that in just JavaScript..your help will be appreciated..
1 Resposta
+ 5
let str = "Your text goes here";
let i = 0;
let el = document.getElementById("the ID of your element which contains your text");
setInterval(() => {
el.innerHTML = str.slice(0, i);
}, 500);