Scenario
I am usign isotope plugin (http://isotope.metafizzy.co/) with angular js. On click of thumbnail image I am adding class "expanded" and increasing its width and height to occupy four boxes.
Can we do this?:
When I click on thumbnail image of "last row" Its occuping four tumbnails but growing downwards to create empty space. as per attached image. Is there any way to exapand thumbnail in upward direction so that In any case there will not be any empty blank space
Code Snippet
$grid = $('.grid');
$grid.isotope({
itemSelector: '.grid-item',
masonry: {
columnWidth: 205
},
gutter: 0,
onLayout: function ($elems, instance) {
$elems.show(); // initially elements were hidden and dislayed when all of them rendered
}
}