How to change the background colours with time ?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to change the background colours with time ??

I want to keep the bg color RED for 5 sec and BLUE for next 5sec

9th Jun 2016, 4:24 PM
Dayananda kishore
Dayananda kishore - avatar
4 Answers
0
That should be done with javascript in my opinion. And I'm not shure, but maybe there is a way of doing it with advanced CSS.
9th Jun 2016, 8:41 PM
Alexandre Palma
Alexandre Palma - avatar
0
This can be done in CSS3 with animation and @keyframes. Modern browsers onl, prefix for some of them. animation-iteration-count: infinite; Colors change forever.
9th Jun 2016, 10:51 PM
ZinC
ZinC - avatar
0
You can use CSS3 for this however Javascript or Jquery would be best for that
11th Jun 2016, 6:15 AM
Matt
0
You need to use javascript
29th Jun 2016, 7:52 PM
Varun Rajput
Varun Rajput - avatar