As I understand it, usage of the JS requestAnimationFrame API is intended for cases where the framerate isn\'t in need of being controlled, but I have a use cas
requestAnimationFrame
What you can do, though I don't really know if this is really any better is:
setInterval
Example:
Demo: http://jsfiddle.net/54vWN/