JSFiddle - React, Tailwind, and code Playground
by donce17
HTML
<div id="tag"></div>
JavaScript
var fragments = shuffle(["quote1", "quote2", "quote3", "etc", "ctr", "lalla"])
setInterval(function () {
$('#tag').animate({
opacity: 0.9
}, 1000).html(fragments.pop());
}, 1000);
function shuffle(o) { //v1.0
for (var j, x, i = o.length; i; j = Math.floor(Math.random() * i), x = o[--i], o[i] = o[j], o[j] = x);
return o;
};