jmccole83
3/25/2019 - 4:04 PM

Isotope.js | Basic Setup

// Isotope Settings
var $grid = $('.grid').isotope({
  // options
  itemSelector: '.grid-item',
  layoutMode: 'fitRows',
  fitRows: {
    gutter: 2.5,
  },
});
// bind filter button click
$('.filter-button-group').on( 'click', 'button', function() {
  var filterValue = $(this).attr('data-filter');
  $grid.isotope({ filter: filterValue });
});