<div class="container">
<div class="row">
<div class="pic-container">
<div class="parent">
<div class="wrapper thumb-1">
<div class="content">
<div class="img"></div>
<div class="text">
<div class="line title"></div>
<div class="line subtitle"></div>
</div>
</div>
</div>
</div>
</div>
<div class="pic-container">
<div class="parent">
<div class="wrapper thumb-2">
<div class="content">
<div class="img"></div>
<div class="text">
<div class="line title"></div>
<div class="line subtitle"></div>
</div>
</div>
</div>
</div>
</div>
<div class="pic-container">
<div class="parent">
<div class="wrapper thumb-3">
<div class="content">
<div class="img"></div>
<div class="text">
<div class="line title"></div>
<div class="line subtitle"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
body {
background: url(http://www.magic4walls.com/wp-content/uploads/2014/05/minimalist-picture-bridge-river-dreaming-art-picture-landscape-sky.jpg)no-repeat;
}
.container {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
width: 327px;
}
.pic-container {
float: left;
}
.parent {
position: relative;
width: 109px;
height: 109px;
margin: 0 auto;
}
.wrapper {
width: 109px;
height: 109px;
cursor: pointer;
position: absolute;
overflow: hidden;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
transition-timing-function: cubic-bezier(0.4, 0.0, 0.2, 1);
transition: transform 375ms, width 275ms 100ms, height 375ms;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}
.wrapper.open {
width: 330px;
height: 330px;
translate transition: transform 375ms, width 375ms, height 275ms 100ms;
}
.wrapper div.content {
position: absolute;
margin: auto;
left: -9999px;
right: -9999px;
transform-origin: top;
width: 330px;
transform: scale(0.62);
height: 330px;
border-radius: 3px;
background: #fff;
overflow: hidden;
transition: transform 375ms cubic-bezier(0.4, 0.0, 0.2, 1);
}
.wrapper.open .content {
transform: scale(1);
}
.wrapper .img {
height: 180px;
background-size: cover;
background-position: center;
}
.thumb-1 .img {
background-image: url(http://i.imgur.com/UGQA9bu.jpg);
}
.thumb-2 .img {
background-image: url(https://timesjourneys.files.wordpress.com/2015/11/day9-iran-shirkuh-timesjourneys2.jpg?w=1200&h=550&crop=1);
}
.thumb-3 .img {
background-image: url(http://cdn-image.travelandleisure.com/sites/default/files/styles/tnl_redesign_article_landing_page/public/1453920892/DUBAI-554088081-ABOVE0116.jpg?itok=dcoZnCrc);
}
.text {
padding: 30px;
}
.text .line {
height: 13px;
background: #999;
opacity: 0.7;
margin-top: 20px;
}
.title {
width: 80%;
}
.subtitle {
width: 60%;
}
$(function() {
$('.wrapper').click(function() {
$('.wrapper').each(function() {
$(this).css('z-index', 0);
});
$(this).css('z-index', 10);
$(this).toggleClass('open');
})
})
This Pen doesn't use any external CSS resources.