我想为我的网站创建一个过滤组合,我已经完成了所有设置,但问题是,当我使用 Isotope 过滤一个类别时,它当然会过滤掉,但是当我单击图像并启动 lightgallery 时,它显示所有类别的所有图像。
我希望特定类别的图像在 lightgallery 的幻灯片中可见。我在堆栈中看到了一些答案,我想我需要实现一个影子盒。但不知道如何。
请帮我。
我的密码笔
//isotope Code
$('#gallery').isotope({
// options
itemSelector: '.revGallery-anchor',
layoutmode: 'fitrows'
});
$('button').on( 'click', function() {
var filterValue = $(this).attr('data-filter');
$('#gallery').isotope({ filter: filterValue });
});