Releases: behance/lightbox
Releases · behance/lightbox
v8.2.0
- Added the previous slide to the
activate
event: e.g., on('activate', (activeSlide, previousSlide) => { ... }
v6.0.0
- add slide prefetching on hover and on next / prev
v5.0.0
- ⚠️ Remove the
data-picture
feature in favor of a <script type="text/html" class="js-lightbox-slide-content"><anything-you-want/></script>
- ⚠️ Change signature of the public
.slide
array to contain { id: String, content: (DOMNode|String) }
- Add slide animation transition for smooth cross-fade transitions
v4.2.0
- A simple example is in the
/examples/simple
folder. Run it with npm run examples-simple
- Events added for all controller methods:
open
, close
, prev
, next
, hideExtras
and showExtras
.
v4.1.0
- You can now add a
data-picture
attribute to the lightbox image node. It will be read and a element will be created for each image in the lightbox
.
v4.0.0
- stability improvements including adding unit tests & refactoring
- added hiding of non-image nodes after a period of inactivity
- style improvements
v3.1.1
Fixes Bug where next/previous would show the image and then hide it.
v3.1.0
ClosIconColor: Adds ability to detect lightbox background color and change the icon color to white or black depending on the darkness of the color
1.0.2
added explicit jquery import