title: Aligning part of a div's content to bottom in a jQuery dropdown
body: <p>I've created a portfolio page for myself and have run into the problem of wanting to align a link to the bottom of a div, which only shows if you click an arrow. I took pictures of the two states of the dropdown, they are <a href="https://i.imgur.com/Cq7sTRM.png" rel="nofollow noreferrer">here</a> and <a href="https://i.imgur.com/DgAG581.png" rel="nofollow noreferrer">here</a>. My goal is to align the "View on GitHub" link to the bottom, I've tried most of the things I found being suggested, but most of them either use display:table-cell, which breaks up the opening-closing animation, or they suggest relative and absolute positioning, which doesn't work with my current way of implementing the movement. If anyone has an idea, it would be greatly appreciated.</p>
  
  <p>EDIT: Absolute and relative positioning does the positioning part correctly, but it's not following the expansion animation, which is what I'm looking for.</p>
  
  <p>Here is the markup, the styling and the scripts that go with the relevant section:</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() {
  
    $(".slidebtn").click(function() {
  
      $(this).parent(".projects-arrow").prev(".slider").slideToggle(1000);
      $(this).children().toggleClass("fa-angle-double-up fa-angle-double-down");
    });
  
  });</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.projects-arrow {
    text-align: center;
  }
  
  #projects .summary {
    font-style: italic;
    height: 70px;
  }
  
  #projects .card .card-block {
    font-size: 15px;
    padding-bottom: 0;
    padding-top: 15px;
    text-align: justify;
  }
  
  #projects .slider {
    height: 300px;
  }
  
  #projects .slider ul {
    margin-bottom: 30px;
  }</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="card col-md-5"&gt;
    &lt;h4 class="card-header"&gt;My portfolio&lt;/h4&gt;
    &lt;div class="card-block summary"&gt;
      My portfolio page
    &lt;/div&gt;
    &lt;div class="card-block slider"&gt;
      &lt;ul&gt;
        &lt;li&gt;Used Materialize CSS and Bootstrap for the Front-end&lt;/li&gt;
        &lt;li&gt;Back-end uses jQuery for few scripts&lt;/li&gt;
        &lt;li&gt;Utilizes dynamic CSS properties as an effort to optimize it for multiple screen sizes&lt;/li&gt;
        &lt;li&gt;Hosted on GitHub pages&lt;/li&gt;
  
      &lt;/ul&gt;
      &lt;div class="projects-link"&gt;
        &lt;a href="https://github.com/vghgergely/vghgergely.github.io" target="_blank"&gt;&lt;strong&gt;View on GitHub&lt;/strong&gt;&lt;/a&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  
    &lt;div class="projects-arrow"&gt;
      &lt;a class="slidebtn"&gt;&lt;i class="fa fa-angle-double-down"&gt;&lt;/i&gt;&lt;/a&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Thank you very much in advance!</p>