JSFiddle - React, Tailwind, and code Playground
HTML
<p id="tagline">Beyond awesome</p>
JavaScript
var taglines = ['Hello world!', 'Over the rainbow', 'Seeing is believing', 'Bloody hell where am I going?'], count = 0;
setInterval(function(){
$('#tagline').fadeOut(300, function(){
$(this).text(taglines[(count++)%taglines.length]).fadeIn(300);
})
}, 3000);