Basically, what I've got going is a timer that counts every half second and on that it should update the degree and the div should be rotated to the new degree. The end result of this should (theoretically) be a somewhat smooth constantly rotating div.
Sadly, it goes as far as rotating it 1 degree and then the degree is not updated again even though according to the console log the number is still counting up.
Any suggestions?
setInterval(function()
{
var i = 0;
i++;
$('#nav').css({'-webkit-transform' : 'rotate(' + i + 'deg)'});
console.log(i);
}
, 1000);
Thanks!