I would like for the fade in/fade out to work for each word, one after the other. However, it either displays the last word in the array or everything together. I'm using animate.css and I'm trying to use JQuery to effect this transition of words. Please advise. thanks
<script>
var classes = [ '<h1 class="animated infinite rotateOutUpLeft">Software </h1>',
'<h1 class="animated infinite rotateOutUpLeft">project </h1>',
'<h1 class="animated infinite rotateOutUpLeft">Engineering</h1>',
'<h1 class="animated infinite rotateOutUpLeft">Science</h1>'
];
var display;
// var i = 10000000;
for (i = 0; i < classes.length; i++) {
document.write(i);
$("#tst").empty();
$("#tst").append(classes[i]);
// setTimeout(function(){alert('join');}, 10000);
// $("#tst").append(classes[i]);
// setTimeout(function(){$("#tst").append(classes[i]);}, 6000);
}
</script>