var Isotope = require('isotope-layout');
var $grid = new Isotope( '.our-design__gallery-items', {
itemSelector: '.our-design__gallery-item',
});
$grid.isotope({filter: '.filter-design'});
$grid.isotope is not a function
// import $ from 'jquery';
import "isotope-layout/dist/isotope.pkgd";
var $grid = $(".our-design__gallery-items").isotope({
itemSelector: '.our-design__gallery-item',
});
Uncaught TypeError: $(...).isotope is not a function
import $ from 'jquery';
import "isotope-layout/dist/isotope.pkgd";
var $grid = $(".our-design__gallery-items").isotope({
itemSelector: '.our-design__gallery-item',
});
$(".our-design__gallery-filters").on("click", "li", function(){
$grid.isotope({ filter: $(this).attr('data-filter') });
});