

Better customizability, better performance on mobile devices. Moved all modules to the main repo for better maintainability. etc, virtual slides, dynamically add, remove slides while the gallery is open, comment interface, and much more. Added new features such as pinch to zoom, swipe to close, zoom from the origin, inline gallery, next-generation image formats support(webp, JPEG XL). Completely re-wrote from scratch in typescript Here are the highlights of the lightGallery v2. LightGallery is available for React, Vue.js, and Angular. lightGallery is built with modular architecture, It is easy to create your own modules, as well as detach modules that you don't want to use. LightGallery comes with plenty of features, such as Animated thumbnails, Pagers, pinch to zoom, Youtube Vimeo Wistia and html5 videos Support, History plugin, Social media sharing, Responsive images, Touch and mouse drag support, etc. lightGallery(document.JavaScript gallery library for building beautiful image and video galleries for the web and the mobile. lightGallery(document.getElementById('lightgallery')) ĥ. Initialize the lightGallery with default options. 'Peck Pocketed' by Kevin Herron | Disney Favorite"Ĥ. used in zoom plugin to see the actual size of the image when you doubleclick on the image. data-width: Actual size of the image in px.By default, current browser URL will be taken. Specify only if you want to provide separate share URL for the specific slide. data-twitter-share-url: Twitter share URL.data-sub-html-url: URL of the file which contain your sub html.data-sub-html: id or class name of an object(div) which contain your sub html.data-sources: Source attributes for the picture element.

data-slide-name: Custom slide name to use in the url when hash plugin is enabled.data-responsive: List of images and viewport’s max width separated by comma.Ex: img/1-375.jpg 375, img/1-480.jpg 480, img/1-757.jpg 757.data-poster: Poster image for your video.data-pinterest-text: Description for Pinterest post.data-pinterest-share-url: Pinterest share URL.data-iframe: Set true is you want to open your url in an iframe.data-fb-html: Facebook comments body html.data-facebook-share-url: Facebook share URL.
#Lightgallery download#
Pass false if you want to hide the download button. lightGallery comes with many built in modules.
