Saw this slide down reveal effect on CodePen, I was wondering if anyone could help me recreate it using jQuery? The effect can be found here. While I understand what's going on with CSS, I would like to create this effect using jQuery/JavaScript.
HTML:
<section>
<div id="icon-wrapper">
<a href="map.html">
<div class="icons">
<div class="icon-slide-container">
<img class="slide-icon" alt="The Kite Map Logo" height="100" src="http://thekitemap.com/images/slide/view-map.jpg">
</div>
</div>
</a>
</div>
</section>
CSS:
body{
background:#eeeeee;
}
section{
float: left;
padding-top: 50px;
padding-bottom: 100px;
width: 100%;
padding-left:0;
padding-right:0;
}
#icon-wrapper{
width:100%;
float:left;
height:300px;
}
.icons {
width:25%;
float:left;
position:relative;
}
.icon-slide-container{
height:300px;
overflow:hidden;
text-align: left;
position: absolute;
float: left;
width: 300px;
left: 50%;
margin-left: -150px;
}
.slide-icon{
width:300px;
height:auto;
position:absolute;
margin-top:-300px;
-webkit-transition:.4s ease;
-moz-transition:.4s ease;
-ms-transition:.4s ease;
-o-transition:.4s ease;
transition:.4 ease;
}
.slide-icon:hover{
position:absolute;
margin-top:0;
}