title: jQuery animate() to move div right, then left, on click
body: <p>I am trying to get a div to slide to the right and then back left on click. I currently have this code, but it slides right, then immediately slides back left without a second click. I also tried to implement toggle, but ended up breaking the script. I feel so close but can't seem to nail it.</p>
  
  <pre><code>$(function(){
      $("#click").click(function(){
          $("#click").animate({left:'+=100px'}, 'fast');
      });
  
      $("#click").click(function() {
          $("#click").animate({left:'0'}, 'fast');
      });
  });
  </code></pre>