I am trying to create a simple animation by changing a div class
waiting a few millisecond before changing the next div class and so on.
The problem is that the graphics in my test browser ( Chrome ) are only refreshed at the end of all calls and not after each class change.
for(var i = 0; i < 9 ; i++ ){
document.getElementById(i).setAttribute("class","blueSquare" );
sleep(500);
}
here is the jsfiddle to test I have tried various hacks presented in stackoverflow but none seemed to work. I would really appreciate your help.