title: jquery passing in direction to animate()
body: <p>I am getting the direction from the div click and a, trying to pass this into the animate function   </p>
  
  <pre><code>var direction = $(this).attr('class').split(' ')[1];
  var scrollAmount = 285;
  $('#slider').animate({direction:'-=' + scrollAmount}, 'slow');
  </code></pre>
  
  <p>What is wrong? </p>
  
  <p>Thanks</p>