How to Generate Random Background Color in Every Second By JavaScript and CSS?

Suppose you have recently developed an HTML5 Marketing Presentation. You are putting all your effort into it and trying to make every Presentation as much information as possible. But unfortunately, the Presentation is not getting enough response from the target audience. The bounce rate is high. What to do? Is it the code? Is it the loading time? What is it?

Well, if everything is perfect, then you need to do something unorthodox. Your first priority is to get attention from the audience, right? Now, you have got to do everything it takes to keep your audience stay at your Marketing Presentation. And one of the finest ways to do that is by making the Presentation background color to randomly change at every second. The visitors will have something to play and they will stay for sure. Today we will talk about the way to generate random website background color every second by JavaScript and CSS3.

How to do it? Thankfully, cssanimation.io has come today with the most effective line of commands to make that happen. Check the following codes and let us know your experience.

JavaScript Code

See the Pen How to Generate Random Presentation Background Color in Every Second By JavaScript? by Pavel (@bdpavel) on CodePen.0

CSS Code

See the Pen How to Generate Random Presentation Background Color in Every Second By CSS? by Pavel (@bdpavel) on CodePen.0