Created
August 5, 2015 17:09
-
-
Save albertodelax/856e67e9ba5905c051db to your computer and use it in GitHub Desktop.
Rainbow Background Animation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<style type="text/css"> | |
body { | |
background-color: red; | |
transition: background-color 7s; | |
} | |
</style> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
var colors = ["red", "orange", "yellow", "green", "blue", "indigo", "violet"]; | |
var i = 1; | |
window.setInterval(function(){ | |
document.body.style.backgroundColor = colors[i]; | |
i++; | |
if (i === colors.length){ | |
i=0; | |
} | |
}, 5000); | |
</script> | |
</body> | |
</html> |
quick
how to make faster
plez quickly for shcol
how to make faster plz
transition: background-color 1s;
**-> change the seconds as per your taste.**
ummm it says SyntaxError: Unexpected token '<' (line 1, file "Code.gs") how do i fix it quick
i need it for school in 20 mins so please
cool. I like it! the only problem is if I try to run it using Microsoft (R) HTML Application host it doesn't fade between colors it just goes to the next color without fading any way to fix that?
also its when i set the file as .hta not .html
i love it
I love this!!! I recomend !!!
how do i import in and use it i did control shift j and pasted and idk hot to make it work???? plz
hw do i use it
ya how do i use it
die
…On Thu, Dec 2, 2021 at 9:57 AM ddsifghsudfyvghsdfv ***@***.***> wrote:
***@***.**** commented on this gist.
------------------------------
ya how do i use it
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<https://gist.github.com/856e67e9ba5905c051db#gistcomment-3981878>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALIDLGUFLXLHMRGSA7WKXPDUO6XRNANCNFSM4Q3I63OA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
what
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
how to make faster plz