2
The following code works as the setTimeout function (happening only once and not repeating), I have tried several ways and could not, if anyone can help me, already thank.
function girar(){
var bola = document.getElementById("ball");
window.xvel = 10;
setInterval(function(){
window.xvel = parseFloat(window.xvel) + parseFloat("10");
}, 500);
bola.style.webkitTransform = "rotate(" + window.xvel + "deg)";
}
Thank you very much.
– Samir Braga
+1 for the square ball
– Oralista de Sistemas