# lightbox-gallery ## Требования - [Swiper](https://github.com/nolimits4web/swiper) версии ^10.2.0 ## Подключение и настройка ### HTML ```html
``` ### Стили ```scss @use '@advdominion/lightbox-gallery/styles.css'; ``` ### Минимальные настройки ```js import gallery from '@advdominion/lightbox-gallery'; gallery(document.getElementById('list'), { icons: { close: `/icons.svg#close`, }, }); ``` ### Все настройки ```js import gallery from '@advdominion/lightbox-gallery'; gallery(document.getElementById('list'), { swiper: { speed: duration.effect.s, pagination: { el: '.swiper-pagination', }, navigation: { prevEl: '.swiper-button-prev', nextEl: '.swiper-button-next', }, }, pagination: ` `, navigation: ` `, animation: { show: { duration: 500, easing: 'linear', }, hide: { duration: 500, easing: 'linear', }, }, icons: { close: `/icons.svg#close`, }, }); ```