+ 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..

4th Jan 2018, 5:12 AM
_c0dÂŁ BitÂŁ_
_c0dÂŁ BitÂŁ_ - avatar
1 Answer
+ 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);
4th Jan 2018, 5:41 AM
Dapper Mink
Dapper Mink - avatar