Metro Tiles

by Avinashullal

HTML

<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.4.0/css/font-awesome.min.css">
<div class="metro">
    <div class="tiles">
        <div class="tile_backgrnd color1">
        <i class="fa fa-bug fa-5x"></i>
        </div>
        <div class="tile_content">
            <div class="tile_hdr"></div>
            <div class="tile_title">Title</div>
            <div class="tile_maincontent bluedark">Lorem Ipsum psedos</div>
        </div>
    </div>
    
</div>

CSS

.tiles {
    border: 1px solid #FFFFFF;
    float: left;
    margin: 5px 7px 5px 7px;
    width: 160px;
    height: 160px;
    text-align: center;
    overflow: hidden;
}
.tile_backgrnd {
    width: 160px;
    height: 160px;
    margin: 0px;
    text-align: center;
    line-height:180px;
    color:#fff;
}
.color1 {
    background-color: #25A9F3;
}

.tile_content {
    height: 160px;
    position: relative;
    left: 0px;
    top: -40px;
    
}
.tile_hdr {
    width: 160px;
    height: 40px;
    padding: 0px 2px 0px 2px;
    text-align: center;
    background-color: #FFFFFF;
    opacity: 0.4;
    position: relative;
    top: 3px;
}
.tile_title {
    font-size: 16px;
    line-height: 20px;
    color: #FFFFFF;
    font-family:'Segoe UI';
    position: absolute;
    width: 160px;
    height: 40;
    text-align: center;
    top:9px;
}
.tile_maincontent {
    overflow: hidden;
    margin-top: 3px;
    font-family:'Segoe UI';
    width: 160px;
    height: 160px;
    color: #fff;
    background: #fff;
        opacity: 0.4;
}

JavaScript

$(document).ready(function () {
    $('.tiles').hover(function () {
        $(this).css("cursor", "pointer");
        $(this).find(".tile_content").stop().animate({
            top: "-163px"
        }, 100);
    });
    $('.tiles').mouseleave(function () {
        $(this).find(".tile_content").stop().animate({
            top: "-40px"
        }, 100);
    });
});