<div class="container"> <div class="row"> <div class="span4"> <div class="thumb-pad"> <div class="thumbnail"> <img src="image_1.jpg" alt=""> <div class="caption"> <h5>Thumbnail label</h5> <p>Text.</p> <a href="#" class="btn">Read More</a> </div> </div> </div> <div class="span4"> <div class="thumb-pad"> <div class="thumbnail"> <img src="image_1.jpg" alt=""> <div class="caption"> <h5>Thumbnail label</h5> <p>Text.</p> <a href="#" class="btn">Read More</a> </div> </div> </div> <div class="span4"> <div class="thumb-pad"> <div class="thumbnail"> <img src="image_1.jpg" alt=""> <div class="caption"> <h5>Thumbnail label</h5> <p>Text.</p> <a href="#" class="btn">Read More</a> </div> </div> </div> </div> </div>
<div class="container"> <div class="row"> <div class="span4"> <div class="thumb-pad"> <a href="#" class="thumbnail"><img src="image_2.jpg" alt=""></a> </div> </div> <div class="span4"> <div class="thumb-pad"> <a href="#" class="thumbnail"><img src="image_2.jpg" alt=""></a> </div> </div> <div class="span4"> <div class="thumb-pad"> <a href="#" class="thumbnail"><img src="image_2.jpg" alt=""></a> </div> </div> </div> </div>
<div class="container"> <div class="row"> <div class="span3"> <div class="thumb-pad"> <div class="thumbnail"> <img src="image_1.jpg" alt=""> <div class="caption"> <h5>Thumbnail label</h5> <p>Text.</p> <a href="#" class="btn">Read More</a> </div> </div> </div> <div class="span3"> <div class="thumb-pad"> <div class="thumbnail"> <img src="image_1.jpg" alt=""> <div class="caption"> <h5>Thumbnail label</h5> <p>Text.</p> <a href="#" class="btn">Read More</a> </div> </div> </div> <div class="span3"> <div class="thumb-pad"> <div class="thumbnail"> <img src="image_1.jpg" alt=""> <div class="caption"> <h5>Thumbnail label</h5> <p>Text.</p> <a href="#" class="btn">Read More</a> </div> </div> </div> <div class="span3"> <div class="thumb-pad"> <div class="thumbnail"> <img src="image_1.jpg" alt=""> <div class="caption"> <h5>Thumbnail label</h5> <p>Text.</p> <a href="#" class="btn">Read More</a> </div> </div> </div> </div> </div>
<div class="container"> <div class="row"> <div class="span3"> <div class="thumb-pad"> <a href="#" class="thumbnail"><img src="image_1.jpg" alt=""></a> </div> </div> <div class="span3"> <div class="thumb-pad"> <a href="#" class="thumbnail"><img src="image_1.jpg" alt=""></a> </div> </div> <div class="span3"> <div class="thumb-pad"> <a href="#" class="thumbnail"><img src="image_1.jpg" alt=""></a> </div> </div> <div class="span3"> <div class="thumb-pad"> <a href="#" class="thumbnail"><img src="image_1.jpg" alt=""></a> </div> </div> </div> </div>
<div class="container"> <div class="row"> <div class="span6"> <div class="thumb-pad"> <div class="thumbnail"> <img src="image_1.jpg" alt=""> <div class="caption"> <h5>Thumbnail label</h5> <p>Text.</p> <a href="#" class="btn">Read More</a> </div> </div> </div> <div class="span6"> <div class="thumb-pad"> <div class="thumbnail"> <img src="image_1.jpg" alt=""> <div class="caption"> <h5>Thumbnail label</h5> <p>Text.</p> <a href="#" class="btn">Read More</a> </div> </div> </div> </div> </div>
<div class="container"> <div class="row"> <div class="span6"> <div class="thumb-pad"> <a href="#" class="thumbnail"><img src="image_2.jpg" alt=""></a> </div> </div> <div class="span6"> <div class="thumb-pad"> <a href="#" class="thumbnail"><img src="image_2.jpg" alt=""></a> </div> </div> </div> </div>
Quisque nulla. Vestibulum libero nisl, porta vel, scelerisque eget, malesuada at, neque. Vivamus eget nibh. Etiam cursus leo vel metus. Nulla facilisi. Aenean augue. Nam elit magna, hendrerit sit amet, tincidunt ac, viverra sed, nulla. Donec porta diam eu massa. Quisque diam lorem, interdum vitae, dapibus ac, scelerisque vitae, pede.
Mauris accumsan nulla vel diam. Sed lacus ut enim adipiscing aliquet. Nulla venenatis. In pede mi, aliquet sit amet, euismod in, auctor ut, ligula. Aliquam dapibus tincidunt metus. Praesent justo dolor, lobortis quis, lobortis dignissim, pulvinar ac lorem. Vestibulum sed ante. Donec sagittis euismod purus voluptatem accusantium doloremque. Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium
Read MoreQuisque nulla. Vestibulum libero nisl, porta vel, scelerisque eget, malesuada at, neque. Vivamus eget nibh. Etiam cursus leo vel metus. Nulla facilisi. Aenean augue. Nam elit magna, hendrerit sit amet, tincidunt ac, viverra sed, nulla. Donec porta diam eu massa. Quisque diam lorem, interdum vitae, dapibus ac, scelerisque vitae, pede.
Mauris accumsan nulla vel diam. Sed lacus ut enim adipiscing aliquet. Nulla venenatis. In pede mi, aliquet sit amet, euismod in, auctor ut, ligula. Aliquam dapibus tincidunt metus. Praesent justo dolor, lobortis quis, lobortis dignissim, pulvinar ac lorem. Vestibulum sed ante. Donec sagittis euismod purus voluptatem accusantium doloremque. Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium
Read MoreQuisque nulla. Vestibulum libero nisl, porta vel, scelerisque eget, malesuada at, neque. Vivamus eget nibh. Etiam cursus leo vel metus. Nulla facilisi. Aenean augue. Nam elit magna, hendrerit sit amet, tincidunt ac, viverra sed, nulla. Donec porta diam eu massa. Quisque diam lorem, interdum vitae, dapibus ac, scelerisque vitae, pede.
Mauris accumsan nulla vel diam. Sed lacus ut enim adipiscing aliquet. Nulla venenatis. In pede mi, aliquet sit amet, euismod in, auctor ut, ligula. Aliquam dapibus tincidunt metus. Praesent justo dolor, lobortis quis, lobortis dignissim, pulvinar ac lorem. Vestibulum sed ante. Donec sagittis euismod purus voluptatem accusantium doloremque. Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium
Quisque nulla. Vestibulum libero nisl, porta vel, scelerisque eget, malesuada at, neque. Vivamus eget nibh. Etiam cursus leo vel metus. Nulla facilisi. Aenean augue. Nam elit magna, hendrerit sit amet, tincidunt ac, viverra sed, nulla. Donec porta diam eu massa. Quisque diam lorem, interdum vitae, dapibus ac, scelerisque vitae, pede.
Mauris accumsan nulla vel diam. Sed lacus ut enim adipiscing aliquet. Nulla venenatis. In pede mi, aliquet sit amet, euismod in, auctor ut, ligula. Aliquam dapibus tincidunt metus. Praesent justo dolor, lobortis quis, lobortis dignissim, pulvinar ac lorem. Vestibulum sed ante. Donec sagittis euismod purus voluptatem accusantium doloremque. Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium
<div class="container"> <div class="row"> <div class="span12"> <div class="row thumb-pad"> <div class="span4"><a href="#" class="thumbnail"><img src="image_1.jpg" alt=""></a></div> <div class="span8"> <p>Quisque nulla. Vestibulum libero nisl, porta vel, scelerisque eget, malesuada at, neque.</p> <p>Mauris accumsan nulla vel diam. Sed lacus ut enim adipiscing aliquet. Nulla venenatis.</p> <a href="#" class="btn">Read More</a> </div> </div> </div> </div> </div>
Isotope works on a container element with a group of similar child items.
<div id="container"> <div class="item">...</div> <div class="item">...</div> <div class="item">...</div> ... </div>
$('#container').isotope({ // options itemSelector : '.item', layoutMode : 'fitRows' });
Add these styles to your CSS for filtering, animation with CSS transitions, and adding items.
/**** Isotope Filtering ****/ .isotope-item { z-index: 2; } .isotope-hidden.isotope-item { pointer-events: none; z-index: 1; } /**** Isotope CSS3 transitions ****/ .isotope, .isotope .isotope-item { -webkit-transition-duration: 0.8s; -moz-transition-duration: 0.8s; -ms-transition-duration: 0.8s; -o-transition-duration: 0.8s; transition-duration: 0.8s; } .isotope { -webkit-transition-property: height, width; -moz-transition-property: height, width; -ms-transition-property: height, width; -o-transition-property: height, width; transition-property: height, width; } .isotope .isotope-item { -webkit-transition-property: -webkit-transform, opacity; -moz-transition-property: -moz-transform, opacity; -ms-transition-property: -ms-transform, opacity; -o-transition-property: top, left, opacity; transition-property: transform, opacity; } /**** disabling Isotope CSS3 transitions ****/ .isotope.no-transition, .isotope.no-transition .isotope-item, .isotope .isotope-item.no-transition { -webkit-transition-duration: 0s; -moz-transition-duration: 0s; -ms-transition-duration: 0s; -o-transition-duration: 0s; transition-duration: 0s; }
Isotope by David DeSandro / Metafizzy