<style>
.red {
color: red;
}
</style>
<p class="hello">Lorem ipsum dolor sit amet, consectetur</p>
<p class="hello">Sapiente in delectus dolorem reiciendis ditii</p>
<p class="hello">Quis dolore autem voluptatibus repellat</p>
<script>
var pAll = document.querySelectorAll('p.hello'), i = 0, p,
timer = setInterval(function () { p = pAll[i++];
p ? p.classList.add('red') : clearInterval(timer)
}, 2000);
</script>