<h2 id="animated-heading"></h2>
<script>
var thankYouWords = ["Благодаря", "Hvala", "Dík", "Tak", "Bedankt", "Thanks", "Aitäh", "Kiitos", "Merci", "Vielen Dank", "Ευχαριστώ", "Kösz", "Go raibh maith agat", "Grazie", "Paldies", "Dėkoju", "Grazzi", "Dzięki", "Obrigado", "Mulțumiri", "Vďaka", "Hvala", "Gracias", "Tack"];
function displayThankYouWords(index) {
if (index >= thankYouWords.length) {
index = 0;
}
var animatedHeading = document.getElementById("animated-heading");
animatedHeading.innerHTML = thankYouWords[index];
setTimeout(function() {
displayThankYouWords(index + 1)
}, 1500);
}
displayThankYouWords(0);
</script>
This very simple piece of code saved plenty of time creating .gif image as originally suggested as well as update time is possible in less than 1 minute and can be done by anybody as it only involves copy/paste skills.
I hope this little snippet of code helps you.
Happy coding