0.4.0
Features
- New option
closeOnClick
to support closing by clicking anywhere - Any element inside the lightbox with the class
featherlight-close
will now trigger the closing event - Support for nested lightboxes
- Gallery uses swipes on touch devices (if a supported library present)
- Gallery support and uses events to navigate through the images
- New functions:
$.featherlight.close()
andcurrent()
- All configuration options have their equivalent html attribute.
- Improved and extensible content filters.
Breaking changes
closeOnBg
no longer supported, usecloseOnClick
- Gallery: class
.featherlight-prev
renamed to.featherlight-previous
The following changes could require changes to your custom CSS:
- Improves the way tall images are handled using a bottom border to maintain space (cut of instead of shrunken unproportionally)
- Improves the way the with of the lightbox is handled
- Changed paddings from % to pixels
- Added closing icon class to
featherlight-close-icon
Maintenance & Fixes
- Improvements for mobile devices
- Many small bugs fixed
- Tests added
$.fn.featherlight
is now chainable