There are dozens of lightbox plugins and they’re all good for opposite reasons. Some work improved on portfolio sites while others are best for responsive layouts.
Of course, this plugin is totally giveaway to use and open-sourced on GitHub if we wanna puncture into a formula manually.
It’s meant to work ideally on mobile devices, so it can support swipes and taps, along with a default function on desktops laptops. It’s one of a few full-screen galleries that support mobile interactions, along with a full modal effect.
Check out a demo page to see it live in action. It has a entirely featured gallery, along with a one line of formula compulsory to get it working:
So, this targets a enclosure component with a category
.baguetteBoxOne and a whole gallery works off that.
You could set tradition options if we wish for things like captions, symbol styles, preload features, and callback methods for onclick/onchange events. All of these options are well-documented on GitHub if we wanna dive in.
But, it unequivocally doesn’t take many to get this going over a enclosure component and some simple picture elements.