var usd_td = document.getElementById(\'get_usd\'); usd_td.style.color = \'#eee\'; setTimeout(function() { usd_td.style.color = \'#ccc\';setTimeout(function() { usd_td.style.color = \'#aaa\';setTimeout(function() { usd_td.style.color = \'#999\';setTimeout(function() { usd_td.style.color = \'#777\';setTimeout(function() { usd_td.style.color = \'#444\'; }, 40); }, 40); }, 40); }, 40); }, 40);
var usd_td = document.getElementById('get_usd');
colours = ['#eee', '#ccc', '#aaa', '#999', '#777', '#444'];
setColour();
function setColour() {
usd_td.style.color = colours.shift();
console.log(colours)
if (colours.length != 0) {
setTimeout(setColour, 40)
}
};