title: transition-delay property not working when changing class
body: <p>I'm animating an element by changing its parent class (<code>body</code>), but when toggling this class it seems to break the <code>transition-delay</code> property. It works in Safari but not in Chrome or Firefox.</p>
  
  <p>On clicking the first list element, it should move after the other list elements have disappeared.</p>
  
  <p>When clicking back, the list element should return back to its original position, and afterwards the other list element should reappear. But when clicking the back button, the <code>transition-delay</code> on opacity is ignored, causing them to immediately appear.</p>
  
  <p>How can I fix this?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$('#one').click(function() {
    $("body").addClass("move");
  });
  
  $('#back').click(function() {
    $("body").removeClass("move");
  });</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>ul {
    width: 300px;
    height: 150px;
    margin: 0;
    padding: 0;
    list-style: none;
    position: absolute;
    bottom: 0;
    right: 0;
  }
  ul li {
    height: 50px;
    display: block;
    margin: 0;
    padding: 0;
    background: lightgreen;
    transition: 500ms transform ease-in-out, 500ms opacity linear;
    opacity: 1;
    transition-delay: 0, 500ms;
  }
  body.move ul li#one {
    transform: translateY(-100vh) translateY(150px);
    transition: 500ms transform ease-in-out;
    transition-delay: 500ms;
    opacity: 1;
  }
  body.move ul li {
    opacity: 0;
    transition: 500ms opacity linear;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;ul&gt;
    &lt;li id="one"&gt;One&lt;/li&gt;
    &lt;li id="two"&gt;Two&lt;/li&gt;
    &lt;li id="three"&gt;Three&lt;/li&gt;
  &lt;/ul&gt;
  &lt;a id="back"&gt;Back&lt;/a&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><a href="https://jsfiddle.net/m3e7sm8k/5/" rel="nofollow">https://jsfiddle.net/m3e7sm8k/5/</a></p>