JSFiddle - React, Tailwind, and code Playground
by pnoeric
HTML
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="http://isotope.metafizzy.co/jquery.isotope.min.js"></script>
<div id='iso'>
<div class='b video'></div>
<div class='b tweet'></div>
<div class='b post'></div>
<div class='b video'></div>
<div class='b tweet'></div>
<div class='b post'></div>
<div class='b video'></div>
<div class='b tweet'></div>
<div class='b post'></div>
</div>
CSS
.video {
width:435px;
height:265px;
margin:20px;
background-color:yellow;
}
.tweet {
width:200px;
height:165px;
background-color:green;
}
.post {
width:206px;
height:260px;
background-color:blue;
}
#iso {
width:970px;
border:solid 1px red;
}
JavaScript
$(function () {
$('#iso').isotope({
itemSelector: '.b',
layoutMode: 'masonry'
});
});