

Whether to display thumbnail toggle button.Įnables desktop mouse drag support for thumbnails.īy setting the swipeThreshold (in px) you can set how far the user must swipe for the next/prev slide. Height of the thumbnail container including padding and border Whether to show total number of images and index number of currently displayed image.īy setting the swipeThreshold (in px) you can set how far the user must swipe for the next/prev image. if preload is 2 then 2nd 3rd 5th 6th slides will be preloaded ex:// you clicked on 4th image and if preload = 1 then 3rd slide and 5th slide will be loaded in the background after the 4th slide is fully loaded. will exicute only after the current slide is fully loaded. The same way you display images in the gallery. To display YouTube, Vimeo or VK video, you can paste the video URL, or share URL, which is provided by YouTube / vimeo in the data-src attribute.

If true, prev/next button will be hidden on first/last image. Lightgallery supports YouTube, Vimeo, VK and all other types of HTML5 video formats. If false, prev/next buttons will not be displayed. If false, will disable the ability to loop back to the beginning of the gallery when on the last element. lightGallery comes with lots of transition effects such as 'lg-slide' 'lg-fade' 'lg-zoom-in' 'lg-zoom-in-big' 'lg-zoom-out' 'lg-zoom-out-big' 'lg-zoom-out-in' 'lg-zoom-in-out' 'lg-soft-zoom' 'lg-scale-up' 'lg-slide-circular' 'lg-slide-circular-vertical' 'lg-slide-vertical' 'lg-slide-vertical-growth' 'lg-slide-skew-only' 'lg-slide-skew-only-rev' 'lg-slide-skew-only-y' 'lg-slide-skew-only-y-rev' 'lg-slide-skew' 'lg-slide-skew-rev' 'lg-slide-skew-cross' 'lg-slide-skew-cross-rev' 'lg-slide-skew-ver' 'lg-slide-skew-ver-rev' 'lg-slide-skew-ver-cross' 'lg-slide-skew-ver-cross-rev' 'lg-lollipop' 'lg-lollipop-rev' 'lg-rotate' 'lg-rotate-rev' 'lg-tube'įorce lightgallery to use css left property instead of transform.Īllows clicks on dimmer to close gallery.
