title: How do I use transitionend in jQuery?
body: <p>I need to detect if a CSS transition is completed before allowing a function to repeat again, to prevent messing up the margins. </p>
  
  <p>So how cam I have something like</p>
  
  <pre><code>if (transitionend == true) {
    // do stuff
  } else {
    // do nothing
  }
  </code></pre>