scription"><div class="qm-html-paragraph">Calls a function every frame for an amount of time, providing the progress to the callback. This will attempt to use  <code class="qm-code-highlight-code qm-code-font">requestAnimationFrame</code>  , falling back to  <code class="qm-code-highlight-code qm-code-font">setTimeout</code>  if  <code class="qm-code-highlight-code qm-code-font">requestAnimationFrame</code>  is unavailable. </div></div><div class="qm-api-group qm-api-arg-group"><div class="qm-api-group-head