JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://masonry.desandro.com/jquery.masonry.min.js"></script>
<div id="wrapper">
<div id="project_wrapper">
<div class="item block" data-bgimage="images/1.jpg">
<div class="thumbs-wrapper">
<div class="thumbs">
<img src="http://test.davewhitley.com/not-wp/wb/images/thumbs/1.jpg"/>
</div>
</div>
<div class="mask">
<h2 class="title">Personal Works</h2>
<p class="subline">Concept <span class="fancy">&</span> Design</p>
<div class="intro">
<p>I am alone, and feel the charm of existence in this spot, which was created for the bliss of souls like mine. <a href="#" class="more_link">View project »</a></p>
</div>
<div class="project-descr">
<p>O my friend - but it is too much for my strength - I sink under the weight of the splendour of these visions!</p>
</div>
</div><!-- end .mask -->
</div>
<div class="item block" data-bgimage="images/1.jpg">
<div class="thumbs-wrapper">
<div class="thumbs">
<img src="http://test.davewhitley.com/not-wp/wb/images/thumbs/1.jpg"/>
</div>
</div>
<div class="mask">
<h2 class="title">Personal Works</h2>
<p class="subline">Concept <span class="fancy">&</span> Design</p>
<div class="intro">
<p>I am alone, and feel the charm of existence in this spot, which was created for the bliss of souls like mine. <a href="#" class="more_link">View project »</a></p>
</div>
<div class="project-descr">
<p>O my friend - but it is too much for my strength - I sink under the weight of the splendour of these visions!</p>
</div>
</div><!-- end .mask -->
</div>
<div class="item block" data-bgimage="images/1.jpg">
<div class="thumbs-wrapper">
<div class="thumbs">
<img src="http://test.davewhitley.com/not-wp/wb/images/thumbs/1.jpg"/>
</div>
</div>
<div class="mask">
<h2 class="title">Personal Works</h2>
<p...
CSS
/*body{
font-size:12px;
}*/
.clr{
clear:both;
}
#project_wrapper {
font-size:0.75em;
}
a.more_link{
color:white;
/* color:#EF1010;
text-decoration:none;
font-size:10px;
text-transform:uppercase;
font-family:'Droid Sans', Arial, sans-serif;
font-style:normal;*/
}
a.more_link:hover{
border-bottom:1px dotted #ddd;
}
.clr{
clear:both;
}
.container {
position:relative;
margin:10px;
}
.overlay{
background-color:#000;
opacity:0;
position:fixed;
top:0px;
left:0px;
width:100%;
height:100%;
z-index:1000;
display:none;
}
.bg-img{
position:fixed;
width:100%;
top:0px;
left:0px;
z-index:100;
}
.full-view-elements{
display:none;
}
.full-view{
position:fixed;
top:0px;
left:0px;
width:100%;
height:100%;
z-index:1000;
}
.header{
position:relative;
padding:20px 30px;
background:#222;
float:left;
color:#fff;
margin:5px;
}
p.subline{
line-height:20px;
font-size:11px;
text-transform: uppercase;
letter-spacing: 4px;
font-style:normal;
}
.block{
float:left;
margin:5px;
background:#fff;
/*padding:20px;*/
/*width:260px;*/
width:320px;
height:320px;
overflow:hidden;
}
.mask {
opacity:0;
color:white;
position: absolute;
background: rgba(217, 94, 22, 0);
top:0;
width: 320px;
height: 320px;
padding: 2em;
-webkit-transition: all 0.2s ease-in-out;
-moz-transition: all 0.2s ease-in-out;
-ms-transition: all 0.2s ease-in-out;
-o-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
}
.block:hover img {
opacity:0.5;
-webkit-transition: all 0.2s ease-in-out;
-moz-transition: all 0.2s ease-in-out;
-ms-transition: all 0.2s ease-in-out;
-o-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
}
.block:hover .mask {
opacity:1;
...
JavaScript
$(window).load(function() {
$('#project_wrapper').masonry({
itemSelector: '.item',
columnWidth: 330,
isFitWidth: true,
isResizable: true,
isAnimated: true,
containerStyle: {
position: 'absolute'
}
});
});