isotope javascript code example
Example 1: isotope js
<script src="https://unpkg.com/isotope-layout@3/dist/isotope.pkgd.js"></script>
<!-- or -->
<script src="https://unpkg.com/isotope-layout@3/dist/isotope.pkgd.min.js"></script>
Example 2: how to use isotope
var $grid = $('.grid').isotope({
itemSelector: '.grid-item',
getSortData: {
name: '.name',
category: '[data-category]'
},
masonry: {
columnWidth: 200
}
});
Example 3: how to use isotope
var iso = new Isotope( '.grid', {
itemSelector: '.grid-item',
getSortData: {
name: '.name',
category: '[data-category]'
},
masonry: {
columnWidth: 200
}
});