Skip to content

0.4.0

Compare
Choose a tag to compare
@marcandre marcandre released this 07 Apr 19:37
· 339 commits to master since this release

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() and current()
  • All configuration options have their equivalent html attribute.
  • Improved and extensible content filters.

Breaking changes

  • closeOnBg no longer supported, use closeOnClick
  • 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