const nameSpace = document.getElementById("name-space"); const list = [ "kamo", "sumo", "camo", "gamo", "fra", "salamino", "zuppetta", "soup eater", "soul eater", "sound eater", "k", "eheheh", "🗿", "🐡", "fridge haunter", "fridge hunter", "fridge terror", "niiiice", "slice", "BUT", ]; function randomName() { return list[Math.floor(Math.random() * list.length)]; } setInterval(() => { nameSpace.innerHTML = randomName(); nameSpace.classList.add("rotate"); setTimeout(() => { nameSpace.classList.remove("rotate"); }, 5000); }, 5000);