Possible Duplicate:
Continuous CSS rotation animation on hover, animated back to 0deg on hover out
I would like a square continuously rotating. I have this code:
var gearBig = $('.gear-big');
gearBig.css({
'transform': 'rotate(42deg)',
'-moz-transform': 'rotate(42deg)',
'-o-transform': 'rotate(42deg)',
'-webkit-transform': 'rotate(42deg)'
});
How can I put an interval in this code? That the gearBig is continuously rotating?
Thank you
FIDDLE