title: How to close a div,show image load and open another div in jquery?
body: <p>I have two div in my page named div1 and div2 and a button.Initially div2 will be hidden.When i click on the button <strong>three things should happen</strong></p>
  
  <pre><code>1.close the div1 with some animation
  2.Show a loading image for a particular amt of time
  3.Show the div2 with some animation
  </code></pre>
  
  <p>How can i implement the above using jquery ? </p>