Lightweight, accessible and responsive lightbox.
esc
option. Setting this option to false
prevents the lightbox from being closed when pressing the ESC key.focus()
not always available on active element, eg. for SVG elements in IE11 (#86).alt
attribute set. The content is configurable through the data-lity-desc
attribute on the opener element.click.lity
for easier unbinding.New major release. See the upgrade guide for detailed information about upgrading from 1.x.
lity
function is now used directly to open a lightbox. There is no longer a function returned but a Lity
instance.Lity
instance.