Table of contents
ImagesLoaded wrapper for Meteor.
The package includes only core js file with no cache fix.
The removed cache fixes the mobile chrome bug with image overlaying.
meteor add shcherbin:imagesloaded
You can view all available options on the imagesLoaded website.
<template name="photosIsotope">
<ul class="unstyled" id="isotope-body">
{{#each photos}}
<li class="item">
<img src="/img/photos/{{slug}}.jpg" alt="{{title}}">
</li>
{{/each}}
</ul>
</template>
Template.photosIsotope.helpers({
photos: function () {
return Photos.find();
}
});
Template.photosIsotope.rendered = function () {
var container = $('#isotope-body').isotope({
itemSelector: '.item',
masonry: {
columnWidth: '.item'
}
});
container.imagesLoaded(function () {
container.isotope('layout');
});
};