How to change the color of a div by timer via rgb?
rgb (0,0,255) - here division into Red Green Blue. That is, you need to consistently decrease Blue to 0, and increase Red to 255.
You can call the function setInterval and change the values at regular intervals. or constantAnonymous
https://jsfiddle.net/f2ca451m/ on the knee looks like thisAnonymous
To place the code, please use CodePen or similar tool. Thanks you!