I had the need to modify your library. Thank you very much for the contribution.
Because I needed to pause an infinite loop add the following lines of code
if (!!betweenIteration) { let state = false; setInterval(function () { if (state == false) { el.classList.remove(classes); state = !state; } else { el.classList.add(classes); state = !state; } }, betweenIteration); }
I added these lines in line 188 of the dist/index.js file