I am trying to make the transition smoothly. The html is changing but I want it to look smoother. Does anyone know how to do this?
My code:
var words = ["Leergierige", "Enthousiaste", "vooruitstrevende", "innovatieve"];
var i = -1;
function randomWord(){
//var randomId = document.getElementById("random-word");
setInterval(function(){
i++
$("#random-word").html(words[i]).fadeIn("slow");
if (i === 3){
i = -1;
}
}, 2000);
}