title: Jquery: How to combine addCLass() after() and slideDown()
body: <p>I'm trying to add a Class to an existing div container and insert a new div (on success) below the existing one. </p>
  
  <pre><code>&lt;script&gt;
  $(document).ready(function(){
    $(".entry").click(function(){
       $('#content').addClass("col2",1000).after('&lt;div class="box col2"&gt;test&lt;/div&gt;', function(){
          $(this).slideDown();
       });
    });
  });
  &lt;script&gt;
  </code></pre>
  
  <p>Unfortunately this code doesn't work correctly. The slideDown function doesn't work and the new div does already appear even if the previous function hasn't already finished.</p>
  
  <p>Would be nice if someone could help me.</p>