startClass will be empty if zoomFromOrigin is true to avoid css conflicts.Will be false if dynamic option is enabled or galleryID found in the URL.At the moment, zoomFromOrigin options is supported only for image slides.Similarly, upto 480 pixel width size 400-267 and img-400.jpg will be usedĪnd above 480, lg-size 1600-1067 and img-1600.jpg will be used In the above example, upto 375 width and lg-size 240-160 will be used. You can pass a comma separated list of sizes combined with a max-width (up to what size the particular image should be used)ĭata-lg-size="240-160-375, 400-267-480, 1600-1067"ĭata-responsive="img-240.jpg 375, img-400.jpg 480" LightGallery will show the default animation if data-lg-size is not available If you don't know, the size of a few images in the list, you can skip the data-lg-size attribute for the particular slides, You need to know the original image size upfront and provide it via data-lg-size attribute as data-lg-size="1920-1280" Recommended video resolution and & aspect ratios This can be over-written by passing specific size via data-lg-size attribute If true lightGallery will show warning message to include picturefill libraryīy setting the swipeThreshold (in px) you can set how far the user must swipe for the next/prev image.Īllows vertical drag/swipe to close gallery Set to true if the selector in "data-sub-html" should use the current item as its origin.Ĭurrently this is used only for adding support to srcset attribute via picturefill library
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |