-function"><span class="hljs-keyword">function</span>(<span class="hljs-params"></span>) </span>{
  <span class="hljs-comment">// will call this function every frame until true is returned</span>
})

<span class="hljs-comment">// start a transition that should run over the next 1 second</span>
<span class="hljs-comment">// the callback will be called with the progress every frame</span>
hx.transition(<span class="hljs-number">1000</span>, <span class="hljs-function"><span class="hljs-keyword">function</span