Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var nextColor = "rgba(254, 33, 33, 1)";
- setInterval(function() {
- document.body.style.backgroundColor = nextColor;
- if (nextColor === "rgba(254, 33, 33, 1)") {
- nextColor = "rgba(0, 0, 0, 5)";
- } else {
- nextColor = "rgba(254, 33, 33, 1)";
- }
- }, 250);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement