JSFiddle - React, Tailwind, and code Playground
HTML
<div class="wrapper">
<div class="boxGrid"></div>
<div class="buttonBack blogImg">
<div class="boxCaption">
<h3>Top-Blog</h3>
</div>
</div>
</div>
CSS
.wrapper
{
position: relative;
width: 226px;
height: 246px;
}
.boxGrid
{
width: 226px;
height: 246px;
background-image: url(http://s10.postimage.org/z2cp1i70p/button_Border.png);
position: absolute;
top: 0px;
left: 0px;
z-index: 100;
}
.buttonBack
{
position: absolute;
top: 12px;
left: 13px;
border: 0px;
width: 200px;
height: 223px;
z-index: 50;
overflow: hidden;
}
.blogImg
{
background-image: url(http://s10.postimage.org/jflfo4t8p/blog_Button.png);
}
.boxCaption
{
position: absolute;
background: url(http://s10.postimage.org/c2an2wykp/caption.png);
height: 121px;
width: 100%;
bottom: -121px;
text-align: center;
}
.boxCaption h3
{
font-size: 30px;
color: #fff;
}
JavaScript
$(document).ready(function(){
$('.boxGrid').hover(function(){
$('.boxCaption', this).stop().animate({bottom:'0px'},{queue:false,duration:300});
}, function() {
$('.boxCaption', this).stop().animate({bottom:'-121px'},{queue:false,duration:300});
});
});