/* $(window).load(function() {
$container.imagesLoaded( function() {
var $container = $('.masonry-container').masonry({
itemSelector: '.item',
columnWidth: '.item'
});
var $items = $('.item');
// hide by default
$items.hide();
// append to container
$container.append( $items );
$items.imagesLoaded().progress( function( imgLoad, image ) {
// get item
// image is imagesLoaded class, not
// is image.img
var $item = $( image.img ).parents('.item');
// un-hide item
$item.show();
// masonry does its thing
$container.masonry( 'appended', $item );
});
}); */
$(window).load(function() {
var $boxes = $('.item');
$boxes.hide();
var $container = $('.masonry-container');
$container.imagesLoaded( function() {
$boxes.fadeIn();
$container.masonry({
itemSelector : '.item',
itemSelector : '.item'
});
});
});