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(50, 44, 44, 1)";
- } else {
- nextColor = "rgba(254, 33, 33, 1)";
- }
- }, 100);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement