All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
- Fixed: Fix weird lightbox state when hitting enter while lightbox is opened. The triggering element is then still focused, broadcasting additional click events.
- Fixed: Some YouTube player controls were missing when loaded through http (all embeds are now always loaded with https protocols).
- Fixed: Image data URIs are now detected and handled by the image handler.
- Fixed: Fixed iFrame behavior on iOS where the iFrame exceeds the container element.
- Added: The triggering element is now passed as third argument to
lity:open
andlity:ready
event handlers. Note, that the argument might be undefined if the lightbox has been opened programmatically.
- Fixed: Better window instance detection, falls back to
this
if undefined - Fixed: Fix wrong argument when calling configured handler
- Added: Add support for .svg to the image handler (thanks @creynders)
- Added: Add support for .webp, .ico and .tif to the image handler
- Fixed: YouTube/Vimeo URL parameters like
autoplay
are now passed correctly to the embed URLS.
- Fixed: Ensure options set with lity.options() and instance.options() are used correctly.
- Fixed: Ensure handlers set with lity.handlers() and instance.handlers() are used correctly.
- Added: Improved support of Vimeo URLs.
- Added: Improved youtube-nocookie.com URL detection.
- Added: Toggle global
lity-active
class on<html>
element. - Added: Made html template configurable.
- Added: Scale transitions for open and close animations.
- Added: Trigger
lity:remove
event just before removing from the DOM.
- Added: More robust support of YouTube URLs.
- Added: More robust support of Google Maps URLs.
- Fixed: Optimized close button styles (makes styling more robust for :hover, :focus, :active and :visited states).
- Changed: The iFrame handler is now the latest handler in the auto-detection chain and can now handle all types of URLs.
- Fixed: Fixed runtime options not set if main popup handler isn't called
- Fixed: Removed jQuery specific .end() for Zepto compatibility
- Changed: Removed dependency on ES5 shim
- First stable release