I’m using Isotope
for my project to display images. However when my collection is updated Isotope does not pick this up to redraw the grid, instead it just overlays the new image on top of the existing one.
Can Isotope be made reactive to know up the collection has been updated and place the new image into the existing grid correctly.
This is my code for isotope:
Template.Home.onRendered(function () {
Meteor.setTimeout(function(){
var $container = $('.iso');
$container.imagesLoaded(function () {
$container.isotope({
masonry: {
gutter: 1,
itemSelector: '.card',
columnWidth:1
},
filter: '*'
});
});
}, 100);
});