A simple JvaScript way to change element color
function gradient(id, start, end, speed, prop, callback){  var style = id.style || document.getElementById(id).style,   i = setInterval(function(){    for(var j = 0; j     start[j] = gradient.run(start[j], end[j], speed);    style[prop] = gradient.color(start);    if(String(start) === String(end)) {     clearInterval(i);     if(typeof callback === "function")      callback(id);    }   }, 20);  start = gradient.rgb(start);  end = gradient.rgb(end);  speed = speed || 10;  prop = prop || "color";  return i; }; gradient.color = function(c){return "#".concat(gradient.hex(c[0]), gradient.hex(c[1]), gradient.hex(c[2]))}; gradient.hex = function(rgb, c){return (c = rgb.toString(16)).length === 1 ? "0".concat(c) : c}; gradient.norm = function(c){return (c = c.substring(1)).length gradient.rgb = function(c){return [parseInt((c = gradient.norm(c)).substr(0,2), 16), parseInt(c.substr(2,2), 16), parseInt(c.substr(4,2), 16)]}; gradient.run = function(x, y, spe...