title: css transition from top 100% to bottom 0
body: <p>So from this question <a href="https://stackoverflow.com/q/21732263/6554121">Transition effects Top vs. Bottom in CSS is not working</a> I can't do top to bottom transition, so how would I go about trying to get an effect like this (but with transition)</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 show_box()
  {
      let box = document.getElementById("box")
      box.className += " show";
  }</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.box {
    background-color: red;
    top: 100%;
    transition: 1s;
    position: fixed;
  }
  
  .box.show {
    top: initial;
    bottom: 0;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="box" class="box"&gt;
    sdome box with some large text
    &lt;br/&gt;
    &lt;br/&gt;
    &lt;br/&gt;
    &lt;br/&gt;
    sdfasdfsdf
  &lt;/div&gt;
  &lt;button onclick="show_box()"&gt;Show&lt;/button&gt;</code></pre>
  </div>
  </div>
  </p>