$(function () { count = 0; wordsArray = ["Beta", "Gamma", "Delta", "Alpha"]; setInterval(function () { count++; $("#word").fadeOut(400, function () { $(this).text(wordsArray[count % wordsArray.length]).fadeIn(400); }); }, 2000); });
Alpha

About