title: Passing direction as a variable to jquery animate function
body: <p>I'm trying to pass direction variable to jquery animate and the animation doesn't work.</p>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;div class="box"&gt;Box&lt;/div&gt;
  </code></pre>
  
  <p><strong>JS</strong></p>
  
  <pre><code>var direction = 'left';
  $('.box').animate({direction : '100'},500);
  </code></pre>
  
  <p><a href="http://jsfiddle.net/FyrXH/" rel="nofollow">Fiddle</a></p>