title: How I can run 2 slide animations in parallel?
body: <p>I try to make a simplistic slideshow:</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>$(document).ready(function() {
    $("button").on('click', function() {
      $('.slide[data-slide-status="shown"]').hide('slide', {
        direction: 'left'
      }, function() {
        $('.slide[data-slide-status="shown"]').attr("data-slide-status", "hidden")
        $("#three").show('slide', {
          direction: 'right'
        }, function() {
          $("#three").attr("data-slide-status", "shown")
        })
      })
    });
  })</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.slide[ data-slide-status="hidden"] {
    display: none;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://code.jquery.com/ui/1.13.0-rc.2/jquery-ui.js"&gt;&lt;/script&gt;
  &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"&gt;&lt;/script&gt;
  
  &lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous"&gt;
  
  &lt;body class="container"&gt;
    &lt;header class="col-12 d-flex flex-column align-items-center mb-1 mt-1"&gt;
      &lt;h1&gt;Hello&lt;/h1&gt;
    &lt;/header&gt;
    &lt;main class="col-12 d-flex float-none mb-1"&gt;
      &lt;section id="one" data-slide-status="shown" class="col-12 slide flex-column text-center"&gt;
        &lt;div style="background-color:blue; color:white;"&gt;
          ONE
        &lt;/div&gt;
        &lt;button class="btn btn-secondary"&gt;Next&lt;/button&gt;
      &lt;/section&gt;
      &lt;section id="three" data-slide-status="hidden" class="slide col-12 slide text-center" style="background-color:yellow;"&gt;
        THREE
      &lt;/section&gt;
    &lt;/main&gt;
    &lt;footer class="text-center col-12 bg-dark text-light float-none"&gt;
      Lorem Ipsum
    &lt;/footer&gt;
  &lt;/body&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>But what I want is whilst the slide is hiding the next one to start showing. The animation that I want to achive is the section to keep going left whilst in the same time the next slide to keep going left.</p>
  <p>Now the existing slide first and then ne next one will slide back. But I want somehow to be parallelized both animations.</p>