active js
// isotope cdn
// init Isotope (portfolio-items)
var $grid = $('.grid').isotope({ });
// filter items on button click
$('.filter-button-group').on( 'click', 'button', function() {
var filterValue = $(this).attr('data-filter');
$grid.isotope({ filter: filterValue });
});
// add class active in button
$('.portfolio-filter button').click(function () {
$(this).addClass("active");
$(this).siblings().removeClass('active');
});
//isotope button list html
// isotope html containt
...
...
...
...
...
...
...
...
|