Jekyll Array Print With Time Delay

Hi ,
I have a set of 5 words .
I want to print each one of them after 2 seconds delay in a way that previous word gets replaced.
Any suggestions on how to proceed ?