Slide Up

Slide Up when Hover.

by Chintan Upadhayay

HTML

<div class="tile">
  <a href="https://microsoft.sharepoint.com/teams/usvolumelicensing" class="icon"><h2>VOLUME LICENSING PROGRAM</h2><img src="https://microsoft.sharepoint.com/teams/USVolumeLicensing/PublishingImages/img3.png" class="hover" title="VOLUME LICENSING PROGRAM"></a>
  <div class="sub_list">
    <ul class="sub_items">

      <li><a href="#" title="Enterprise agreement (EA)">Enterprise agreement (EA)</a></li>
      <li><a href="#" title="Server and cloud enrollment (SCE)">Server and cloud enrollment (SCE)</a></li>
      <li><a href="#" title="Microsoft Product &amp; services agreement  (MPSA)">Microsoft Product &amp; services agreement  (MPSA)</a></li>
      <li><a href="#" title="Select Plus">Select Plus</a></li>
      <li><a href="#" target="_blank" title="Cloud Solutions Provider (CSP)">Cloud Solutions Provider (CSP)</a></li>
      <li><a href="#" title="Open">Open</a></li>
      <li><a href="#" title="Enrollment for Education Solutions (EES)">Enrollment for Education Solutions (EES)</a></li>
      <li><a href="#" title="Service Provider License Agreement (SPLA)">Service Provider License Agreement (SPLA)</a></li>

    </ul>
  </div>
</div>

CSS

.tile {
  width: 455px;
  position: relative;
  margin-bottom: 20px;
  height: 230px;
  float: left;
  overflow: hidden;
}

.sub_list {
  /* position: absolute;
  top: 234px;
  width: 456px;
  height: 230px;
  color: #fff;
  font-size: 17px;
  text-decoration: none;
  overflow: hidden;

  background: rgba(0, 0, 0, 0.5);*/
  position: absolute;
  top: 234px;
  background: rgba(0, 0, 0, 0.5);
  bottom: 0;
  width: 456px;
  height: 230px;
  color: #fff;
  font-size: 17px;
  text-decoration: none;
  overflow: hidden;
   -webkit-transition: 1s top, 1s cubic-bezier(0, 1, 1, 1);
  -moz-transition: 1s top, 1s cubic-bezier(0, 1, 1, 1);
  -o-transition: 1s top, 1s cubic-bezier(0, 1, 1, 1);
  transition: 1s top, 1s cubic-bezier(0.25,0.1,0.25,1);
}

.tile:hover > .sub_list {

  top: 0em;
  -webkit-transition: 1s bottom, 1s cubic-bezier(0.25,0.1,0.25,1);
  -moz-transition: 1s bottom, 1s cubic-bezier(0.25,0.1,0.25,1);
  -o-transition: 1s bottom, 1s cubic-bezier(0.25,0.1,0.25,1);
  transition: 1s bottom, 1s cubic-bezier(0.25,0.1,0.25,1);
}

/*@-webkit-keyframes example1 {
  //10%  {background-color:red;  top:234px;}
}

@-webkit-keyframes example {
  10% {
    background-color: blue;
    top: 0px;
  }
}*/

.sub_list li, .sub_list a, .sub_items li a {
    color: #fff;
    padding-top: 5px;
    list-style:none;
}