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