title: jQuery animation timings for non CSS
body: <p>I'd like to count from <code>0</code> to <code>n</code> in <code>x</code> seconds and call a function on each step.</p>
  
  <p>For instance:</p>
  
  <pre><code>var count = 0,
      targetCount = 100,
      duration = 500,
      timing,
      interval;
  
  timing = duration / targetCount,
  
  interval = setInterval(function() {
      count ++,
  
      console.log("call onIntervalProgress()", count);
  
      if(count === targetCount)
          clearInterval(interval),
          console.log("call onIntervalDone()", count)
  }, timing);
  </code></pre>
  
  <p>The problem is that I don't want to do it that linear. I'd like to use easing for that job. I know that jQuery provides timing functions. Is it possible to use jQuerys "swing" on non CSS stuff?</p>