title: jQuery Clickable Dropdown with CSS Animation issue
body: <p>Please check out this fiddle: <a href="https://jsfiddle.net/willbeeler/tfm8ohmw/" rel="nofollow">https://jsfiddle.net/willbeeler/tfm8ohmw/</a> </p>
  
  <p><strong>HTML:</strong></p>
  
  <pre><code>&lt;a href="#" class="roll-btn"&gt;Do it! Roll me down and up again!&lt;/a&gt;
  &lt;ul class="roll-btns"&gt;
  &lt;li&gt;&lt;a href="#" class="control animated noshow one"&gt;Milk&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href="#" class="control animated noshow two"&gt;Eggs and Cheese&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href="#" class="control animated noshow three"&gt;Bacon and Eggs&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href="#" class="control animated noshow four"&gt;Bread&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt; 
  </code></pre>
  
  <p><strong>jQUERY</strong></p>
  
  <pre><code>$('.roll-btn').click(function() {
  
      var ctrls = '.control';
  
      if ($(ctrls).hasClass('noshow')) 
    {
      $(ctrls).each(function() {
         $(this).removeClass('noshow');
         $(this).addClass('fadeInDown');
      });
      } else {
      $(ctrls).each(function() {
         $(this).removeClass('fadeInDown');
         $(this).addClass('fadeOutDown');
      });
    }
  
  });
  </code></pre>
  
  <p>This is a pretty simple thing, but I'm having trouble implementing it. Basically, the class "noshow" is a toggle for the A elements. If it does not exist, then add the CSS animation to the A element. If the CSS animation exists, add another css element to hide the A elements. I've tried delaying the "noshow" class, and other methods to no avail. This entire example works correctly with the first two clicks, but because it doesn't add the noshow class, it won't work after that. Basically, I need to add the noshow class on the second click AFTER the CSS animation gets done playing.</p>