// Blink elements [].forEach.call(document.getElementsByClassName("blink"), function (elem) { setInterval(function () { elem.classList.toggle("invert"); }, 200); });