+ 1
How can I make the background change colour(Animation)?
5 Answers
+ 16
//JS, this? :
onload=function(){setInterval(function(){document.body.style.backgroundColor='#'+Math.round(Math.random()*16777215).toString(16)},2000)}
+ 11
I see you have already got brilliant answers.
I'll have to save Valentin's answer for later ^^
Here is one more option:
https://code.sololearn.com/WlGsE8XAibIe/?ref=app
+ 3
you can refer this code
https://code.sololearn.com/WHE0GtrKfoel/?ref=app
+ 3
https://code.sololearn.com/WwmdRZrw4VbG/?ref=app
+ 3
Thank you all