title: Javascript - requestAnimationFrame Frame Rate
body: <p>I have a sprite sheet animation where I am using requestAnimationFrame method to animate a spritesheet with only 4 images on the sheet This is my code:
  <a href="http://hyque.com/ryan/ani-ryan-2.html" rel="nofollow noreferrer">http://hyque.com/ryan/ani-ryan-2.html</a>
  The problem is that it is too fast at 60 fps, so I want to slow the fps. I have been reading several articles on different ways to do it using either setInterval or Date(). I can’t seem to get the code to work correctly. Can anyone help, please.
  Here is one of the articles that I tried to merge into my code:
  <a href="http://codetheory.in/controlling-the-frame-rate-with-requestanimationframe/" rel="nofollow noreferrer">http://codetheory.in/controlling-the-frame-rate-with-requestanimationframe/</a></p>