Script for change background color : Dynamic color
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script>
jQuery(function ($) {
function changeColor(selector, colors, time) {
var curCol = 0,
timer = setInterval(function () {
if (curCol === colors.length)
curCol = 0;
$(selector).css("background", colors[curCol]);
curCol++;
}, time);
}
$(window).load(function () {
changeColor("#wrap", ["linear-gradient(to right, rgb(241, 242, 181), rgb(19, 80, 88))", "linear-gradient(to right, rgb(209, 145, 60), rgb(255, 209, 148))", "linear-gradient(to right, rgb(254, 172, 94), rgb(199, 121, 208), rgb(75, 192, 200))", "linear-gradient(to right, rgb(123, 67, 151), rgb(220, 36, 48))","linear-gradient(to right, rgb(112, 225, 245), rgb(255, 209, 148))","linear-gradient(to right, rgb(64, 59, 74), rgb(231, 233, 187))","linear-gradient(to right, rgb(58, 28, 113), rgb(215, 109, 119), rgb(255, 175, 123))","url('https://www.planwallpaper.com/static/images/Seamless-Polygon-Backgrounds-Vol2-full_Kfb2t3Q.jpg')"], 3000);
});
});
</script>