title: Slide column smoothly in bootstrap4
body: <p>I have three <code>col-md-6</code> , i only show <code>box1</code> and <code>box2</code> initially and when user click on <code>BTN</code>, i want to show <code>box2</code> and <code>box3</code>.<br>
  BUT  i want to make a smooth transition to the left of all the boxes.
  I tried jquery slide but it doesn't work.</p>
  
  <p>How to achieve a smooth transition of boxes to left?</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>function btnclick() {
    $("#box1").hide("slide", {
      direction: "left"
    }, 1000);
    $("#box3").show("slide", {
      direction: "left"
    }, 1000);
  }</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.box {
    height: 300px;
    border: black;
    border-style: dotted;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" /&gt;
  &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.12.4/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"&gt;&lt;/script&gt;
  
  &lt;/script&gt;
  &lt;button onclick="btnclick()"&gt;BTN&lt;/button&gt;
  &lt;div class="container-fluid"&gt;
    &lt;div class="row"&gt;
      &lt;div id="box1" class="box col-md-6"&gt;Box1&lt;/div&gt;
      &lt;div id="box2" class="box col-md-6"&gt;Box2&lt;/div&gt;
      &lt;div id="box3" class="box col-md-6" style="display:none;"&gt;Box3&lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>