Smart lightbox

Lightweight lightbox for photo galleries without dependencies.

Examples

Options

Option Type Default Description
containerSelector string article css selector of the container that contains all the images
imageSelector string img the css selector of images inside the container
lineSelector string p the css selector of one line
galery bolean true if true lineSelector becomes flexbox, all images line up, become the same width, and crop to the same height
bigImageAttr string src attribute contains big image url, by default is te same as preview image. If you set it as "href" it try to be find on parent link node.
borderRadius string 0 border radius of images on the page and in the lightbox
gap string 0 margin between images in photoset
blur string 0 amount of backdrop blur filter