title: Create an Artificial Callback function to enable Callbacks to .addclass and .css in Jquery?
body: <p>I have used the slideUp/Down functions in Jquery to animate a div on my page, but it runs poorly on iPhones, so I decided to write a Webkit equivalent to solve the performance problem, but you cannot apply a callback to the jQuery .css, or .addclass.</p>
  
  <p>I have this function: </p>
  
  <pre><code>$('#collapse').css('height','0');
  </code></pre>
  
  <p>But I need to fake a callback essentially make this work:</p>
  
  <pre><code>$('#collapse').css('height','0', function() {
  //do something after
  });
  </code></pre>
  
  <p>Anyone know how to do this?</p>
  
  <p>The Webkit animation is set to 1 sec.</p>