Here are my two cents:
You can have a linear gradient as follows:
<linearGradient y2="0%" x2="100%" y1="0%" x1="0%" id="F1g"><stop stop-color="#00FF00" offset="0%" id="F1gst1"/><stop stop-color="#FFFFFF" offset="0%" id="F1gst2"/></linearGradient>
Then take the first stop element:
var firstStop = document.getElementById('F1gst1');
, , :
percentage = '35%'; firstStop.setAttribute('offset',percentage);
javascript. ( ), , , , .
, setInterval "1%" x , , , .
, , , .
.