title: Animation alternatives Javascript
body: <p>So I want to make a small JavaScript game.
  And in order to do that I need to animate a few things.
  I went researching and found about <code>setInterval</code> and <code>requestAnimationFrame</code>.</p>
  
  <p>I can use either of those 2 for making my game work, however I understood that <code>requestAnimationFrame</code> is the better alternative there.
  The problem I see with this is that while the function has its benefits , you are unable to set a framerate , or an update rate for it easily. </p>
  
  <p>I found another thread that explained a way of making this work however it seemed somewhat complicated.</p>
  
  <blockquote>
    <p><a href="https://stackoverflow.com/questions/19764018/controlling-fps-with-requestanimationframe">Controlling fps with requestAnimationFrame?</a></p>
  </blockquote>
  
  <p>Is there an easier way of animating with a set framerate  ?</p>