title: Transition size when child element gets removed
body: <p>I have a parent element, that contains multiple child elements. I have an on click function, that hides all other children, except for the clicked one. </p>
  
  <p>Since the parent's width is auto, the width changes, when the children get hidden.</p>
  
  <p>Now I want the resizing to have a transition, but although I use a transition on the parent element, it doesn't do anything:</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>$('.child').on('click', function() {
   $(this).siblings().hide()
  });</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.parent {
      transition: 0.3s all ease;
      width: auto;
      display: inline-flex;
      flex-direction: row;
      justify-content: space-evenly;
      background: #000;
      color: #fff;
  }
  
  .child {
      width: 100px;
      height: 100px;
      background: red;
      margin: 20px;
  }</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;div class="parent"&gt;
      &lt;div class="child"&gt;&lt;/div&gt;
      &lt;div class="child"&gt;&lt;/div&gt;
      &lt;div class="child"&gt;&lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>