title: How to speed up the count down?
body: <p>I am working on a basic countdown using Javascript where, the countdown starts from 0 and then ends till 24 as thats the idea of the countdown, I want to end it at 24. Here's the code: </p>
  
  <pre><code>var count=0;
  
  var counter=setInterval(timer, 50); //1000 will  run it every 1 second
  
  function timer()
  {
    count=count+1;
    if (count &gt;= 24)
    {
       clearInterval(counter);
       //counter ended, do something here
        document.getElementById("countdown").innerHTML=24 ;
  
       return;
    }
  
    //Do code for showing the number of seconds here
       document.getElementById("countdown").innerHTML=count ; // watch for      spelling
  
  }
  </code></pre>
  
  <p>Now the thing is that if you notice this, the countdown happens very fast, this is the intended effect. However the question is this, <strong>Is there a way to have a smooth easing type effect, where the countdown starts slowly and then speeds up by the end ?</strong> How to achieve that effect ? </p>
  
  <p>Thanks for your response.</p>
  
  <p><strong>EDIT:</strong> Here is <a href="http://jsfiddle.net/zubairanwar2/4nnms1gz/" rel="nofollow">the fiddle</a>, to see the countdown in action and to gain a deeper insight. </p>