classie.toggle( event.target, 'gigante' );
That is the part that does the magic - it adds a class 'gigante' which then makes it 4*4 (or whatever)
If you want to make only one be expanded at a time then
eventie.bind( container, 'click', function( event ) {
// don't proceed if item was not clicked on
if ( !classie.has( event.target, 'item' ) ) {
return;
}
// change size of item via class
$('.item').removeClass('gigante'); // add this line
classie.toggle( event.target, 'gigante' );
// trigger layout
msnry.layout();
});
What the line I added does is remove all 'gigante' class from the items and then the toggle will add that class to the item again.
$('.item')
is just a class that every item has.
This answer assumes that only expanded items will be called 'gigante'.