A customizable, modular, responsive, lightbox gallery plugin.
OTHER License
Published by sachinchoolur over 3 years ago
Upgrade angular to v12
Published by sachinchoolur over 3 years ago
Bugfix - https://github.com/sachinchoolur/lightGallery/issues/1038
The image is shifted under certain circumstances
Published by sachinchoolur over 3 years ago
🔥 Add lit component support
🕷 Bugfix - Fix setting selector type
Published by sachinchoolur over 3 years ago
Bug fixes -
refresh
call.settings.container
will be null, as the settings are initialized on import of the scriptPublished by sachinchoolur over 3 years ago
Features
refresh
methoddestroy
methodelementClassNames
prop for react componentBug fixes
false
instead boolean
Published by sachinchoolur over 3 years ago
Make dynamicEl optional in refresh
method
Published by sachinchoolur over 3 years ago
Published by sachinchoolur over 3 years ago
Add new refresh method
This is extremely useful to update lightGallery with a new set of child items.
Previously, destroy and re-initialization was required.
Published by sachinchoolur over 3 years ago
Published by sachinchoolur over 3 years ago
Due to some unexpected build problems, lightGallery React, Angular, and Vue.js builds were not included in the previous release
Published by sachinchoolur over 3 years ago
To make the upgrade seamless, v2 follows the API structure as much as possible. But, few settings are removed and a lot of additional settings are added, the way we use public methods is changed slightly and few events are renamed.
Initialization
V2 doesn’t require jQuery as a dependancy.
lightGallery(document.getElementById('lightgallery'), {
plugins: [lgZoom, lgThumbnail,]
speed: 500
... other settings
});
Plugins - To avoid polluting global scope, since v2 plugins has to be passed via settings.
lightGallery(document.getElementById(‘’lightgallery), {

plugins: [lgZoom, lgAutoplay, lgComment, lgFullscreen , lgHash, lgPager, lgRotate, lgShare, lgThumbnail, lgVideo]

});
CSS - Separated plugin and transitions CSS from the core CSS file. For each plugins, CSS files has to be included separately
<head>
<link type="text/css" rel="stylesheet" href="css/lightgallery.css" />
<!-- lightgallery plugins -->
<link type="text/css" rel="stylesheet" href="css/lg-zoom.css" />
<link type="text/css" rel="stylesheet" href="css/lg-thumbnail.css" />
<!-- OR -->
<link type="text/css" rel="stylesheet" href="css/lightgallery-bundle.css" />
</head>
data-video='{"source": [{"src":"/videos/video1.mp4", "type":"video/mp4"}], "attributes": {"preload": false, "controls": true}}'
Published by sachinchoolur over 3 years ago
Bug fixes and improvements.
Published by sachinchoolur over 3 years ago
Separated plugin and transitions CSS from the core CSS file.
<head>
<link type="text/css" rel="stylesheet" href="css/lightgallery.css" />
<!-- lightgallery plugins -->
<link type="text/css" rel="stylesheet" href="css/lg-zoom.css" />
<link type="text/css" rel="stylesheet" href="css/lg-thumbnail.css" />
<!-- OR -->
<link type="text/css" rel="stylesheet" href="css/lightgallery-bundle.css" />
</head>
Published by sachinchoolur over 3 years ago
Published by sachinchoolur over 3 years ago
Add Angular, React and Vue packages
Published by sachinchoolur over 3 years ago
Subscribe to get notified on the stable release. - ProductHunt
To make the upgrade seamless, v2 follows the API structure as much as possible. But, few settings are removed and a lot of additional settings are added, the way we use public methods is changed slightly and few events are renamed.
Initialization
V2 doesn’t require jQuery as a dependancy.
lightGallery(document.getElementById('lightgallery'), {
plugins: [lgZoom, lgThumbnail,]
speed: 500
... other settings
});
Plugins To avoid polluting global scope, since v2 plugins has to be passed via settings.
lightGallery(document.getElementById(‘’lightgallery), {

plugins: [lgZoom, lgAutoplay, lgComment, lgFullscreen , lgHash, lgPager, lgRotate, lgShare, lgThumbnail, lgVideo]

});
data-video='{"source": [{"src":"/videos/video1.mp4", "type":"video/mp4"}], "attributes": {"preload": false, "controls": true}}'
Published by sachinchoolur almost 4 years ago
Breaking change
Improvements
Published by sachinchoolur almost 4 years ago
Published by sachinchoolur about 4 years ago
Add option to turn off hiding toolbar and controls
If 0
is passed via hideBarsDelay
, lightGallery will not hide the toolbar and controls.
new supportLegacyBrowser
option
This helps make the usage of picturefill libray optional as all modern browsers support srcset attribute now
Better error messaging
Minor bug fixes
Published by sachinchoolur about 4 years ago
Fix issue - #951
Flip buttons class names are interchanged in both CSS and JavaScript