Skip to content

Instantly share code, notes, and snippets.

@praetoriansentry
Created February 23, 2019 06:54
Show Gist options
  • Save praetoriansentry/297152a91354aded5cd0f81ea512a821 to your computer and use it in GitHub Desktop.
Save praetoriansentry/297152a91354aded5cd0f81ea512a821 to your computer and use it in GitHub Desktop.
(function() {
var pres = document.querySelectorAll("#images pre");
var len = pres.length;
for(var i = 0; i < pres.length; i = i + 1) {
pres[i].style.display = 'none';
}
var a = 0;
window.setInterval(function() {
pres[a].style.display = 'none';
pres[(a + 1)%len].style.display = 'block';
a = (a + 1) % len;
}, 40);
}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment