JSFiddle - React, Tailwind, and code Playground
HTML
<input type="button" value="Here" />
<input type="button" value="Here" />
<input type="button" value="Here" />
<input type="button" value="Here" />
<input type="button" value="Here" />
<input type="button" value="Here" />
CSS
input[type="button"]:focus { color:red; }
JavaScript
var allButtons = $(":button"),
index = 0;
(function focus() {
allButtons[index].focus();
index++;
//
setTimeout(focus, index*100);
if (index >= allButtons.length)
index = 0;
}());