title: Jquery Toggle .CSS not working
body: <p>I am trying to change the .css property so that the css transitions will animate on click. For some reason this is not working. This action needs to toggle.</p>
  
  <pre><code> $("button.subnav-toggle").click(function(){              
            $(".subnav").toggle(
              function() {
                $(".subnav").css({'top':'0'});
                alert("something");
              }, function() {
                $(".subnav").css({'top':'-150px'});
            })
          });
  </code></pre>