Filter & sort magical layouts
See isotope.metafizzy.co for complete docs and demos.
- isotope.pkgd.js un-minified, or
- isotope.pkgd.min.js minified
Link directly to Isotope files on cdnjs.
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery.isotope/2.2.1/isotope.pkgd.js"></script>
<!-- or -->
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery.isotope/2.2.1/isotope.pkgd.min.js"></script>
Bower: bower install isotope --save
npm: npm install isotope-layout --save
If you want to use Isotope to develop commercial sites, themes, projects, and applications, the Commercial license is the appropriate license. With this option, your source code is kept proprietary. Purchase a Isotope Commercial License at isotope.metafizzy.co
If you are creating an open source application under a license compatible with the GNU GPL license v3, you may use Isotope under the terms of the GPLv3.
Read more about Isotope's license.
With jQuery
$('.grid').isotope({
// options...
itemSelector: '.grid-item',
layoutMode: 'moduloColumns',
moduloColumns: {
columnWidth: 200
}
});
With vanilla JavaScript
// vanilla JS
var grid = document.querySelector('.grid');
var iso = new Isotope( grid, {
// options...
itemSelector: '.grid-item',
layoutMode: 'moduloColumns',
moduloColumns: {
columnWidth: 200
}
});
With HTML
Add a class of js-isotope
to your element. Options can be set in JSON in data-isotope-options
.
<div class="grid js-isotope"
data-isotope-options='{ "itemSelector": ".grid-item", "masonry": { "columnWidth": 200 } }'>
<div class="grid-item"></div>
<div class="grid-item"></div>
...
</div>
CodersClan has a dedicated support forum for Isotope, where you can get personal support from experienced developers.
By Metafizzy