Trying to get my gallery functioning properly. Right now I am using isotope.js to filter my gallery, and photoswipe.js as the lightbox.
My problem is that even though it is filtering the gallery properly, photoswipe still shows all of the images.
I found this:
// Use the shinybox only for visible elements
var shinyboxInstance = $(".shinybox-isotope:not(.isotope-hidden .shinybox-isotope)").shinybox();
// Callback function that fire the refresh method, once the animation is finished
onAnimationCompleted = function(){
shinyboxInstance.refresh();
};
I have it so when an item is hidden, the class .isotope-hidden
is added to the element, so I'm halfway there. I just need the appropriate script to force photoswipe to only show the filtered images.
Any help would be appreciated. Thank you!