Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- setInterval(function() {
- var boxes = document.getElementsByClassName('item-box');
- var randomBox = boxes[Math.floor(Math.random() * boxes.length)];
- randomBox.classList.add("error");
- setTimeout(function() {
- randomBox.classList.remove("error");
- }, 2500);
- }, 3000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement