jQuery(document).ready(function( $ ){
  
// --- filter ---------------------------------------------------- 

  $('.elementor-portfolio__filter').addClass('filterbutton');
  
var grid = $('.elementor-portfolio__category-description'); // outer box of filterable elements
var item = '.elementor-category__description-item'; // item 
var filteritem = $('.filterbutton'); // filter-button 
var attribute = 'cat-filter'; // what attribute are we searching for?

grid.isotope({
  itemSelector: item,
  filter: 'none',
  layoutMode: 'vertical',
  transitionDuration: 0
});

// filter items on button click
filteritem.click(function() {
  var filterValue = $(this).attr(attribute);
  
  grid.isotope({ filter: filterValue });
  $(item+filterValue).removeClass('initialHidden');
 });
//---- end  
});

SEARCH THIS

SHARE THIS

Share on email
Share on telegram
Share on print
Share on facebook
Share on google
Share on twitter
Share on pocket

DID YOU KNOW?

By clicking on the title in the upper right corner you can share this page
Try it! It’s easy.