Lity Versions Save

Lightweight, accessible and responsive lightbox.

v2.4.1

4 years ago
  • Compatibility with jQuery 3.5.0 (#240).

v2.4.0

4 years ago
  • Allow 'autoplay' on YouTube (#222).

v2.3.1

6 years ago
  • Fix dist files not compiled correctly for 2.3.0 release.

v2.3.0

6 years ago
  • Add esc option. Setting this option to false prevents the lightbox from being closed when pressing the ESC key.

v2.2.2

7 years ago
  • Fix focus() not always available on active element, eg. for SVG elements in IE11 (#86).

v2.2.1

7 years ago
  • Fix focus not returned correctly when active element is the lightbox root element.

v2.2.0

7 years ago
  • Add support for Facebook Video URL's (#63, thanks @iamandrewluca).
  • Fix compatibility with Zepto and note requirement of the data module.

v2.1.1

7 years ago
  • Correctly transfer hashes for generated YouTube, Vimeo and Google Maps URLs. For example when linking to a specific video start time, eg. https://vimeo.com/1084537#t=1m15s.

v2.1.0

7 years ago
  • Images in ligtboxes now have an alt attribute set. The content is configurable through the data-lity-desc attribute on the opener element.
  • Initial focus is now set on the dialog element, not on the first focusable element inside the content. This prevents inline content scrolled down if the first focusable element is at the bottom of the content.
  • The global click event is now namespaced as click.lity for easier unbinding.

v2.0.0

7 years ago

New major release. See the upgrade guide for detailed information about upgrading from 1.x.

  • Lity is now fully accessible complying with the Web Content Accessibility Guidelines (WCAG) 2.0.
  • The lity function is now used directly to open a lightbox. There is no longer a function returned but a Lity instance.
  • All custom events triggered by Lity receive now one parameter: a Lity instance.
  • There are now dedicated youtube, vimeo and googlemaps handlers extracted from the iframe handler.