Minimall Animated Thumbnail
Minimal setup, with the default layout of the gallery, which is adaptive. When selecting an image, it is showed zoomed, with a thumbnail below it.
Note that the gallery is displayed in a single line,
where options are the lightgallery options (thumbnail, zoom,…),
and layout contains the images to display:
<LightGallery options={...} layout={...} />
Full code
Code Snippet
---import { LightGallery } from 'astro-lightgallery'---<LightGallerylayout={{ imgs: [ // srcs is NOT provided in layout.srcs, so images are rendered using <img> // the images are in /public repo, and the src path is the one on the server (without /public) { src: "/img01.jpg", }, { src: "/img02.jpg", }, ... ]}}options={{ thumbnail: true,}}/>