title: SimpleModal and Jquery (How to do open and closing animations)?
body: <p><a href="http://www.ericmmartin.com/projects/simplemodal/" rel="nofollow noreferrer">http://www.ericmmartin.com/projects/simplemodal/</a></p>
  
  <p>There's two examples near the bottom of the page that show how to either do open or closing animations.</p>
  
  <p>I'm pretty new to jquery. How can I declare both onOpen and onClose? (I've only been able to get one to work at a time.</p>
  
  <pre><code>jQuery(function ($) {
      $('a.basic').click(function (e) {
          e.preventDefault();
          $('#basic-modal-content').modal(
              {
                  onClose: function (dialog)
                  {
                      dialog.container.fadeOut('slow', function () {
                      });
                  }
              }
          );
      });
  
  });
  </code></pre>
  
  <p>Thanks for any help you can provide.</p>