- Can now specify standard iFrame attributes and CSS [#269]
- Hopefully Fix iOS scroll issue [#77]
- Changed close icon to a . Be sure to use current CSS files too. [#260]
- Improved focus handling [#259]
- CSS now sets box-sizing to border-box
- New method
resize
that can be overriden if need be.
- Bug fixes
- Tweak auto binding to work with persist and remove limitation on filter.
- Bug fixes
- Gallery: renamed 'images' to 'slides'
- Bug fix for 1.3.0
- New
persist
option to persist content [#122]
- Bump z-index to insure dialogs appear above everything else.
- Open & Close return promises that are resolved when their action successfully finishes.
- Fixed Hammer support [#119]
- Fixed
namespace
option.
- New setting: loading (default is '') is shown initially while content loads. The lightbox also has a class '.featherlight-loading' while content is loading.
- New content-filter "iframe" to generate an iframe with the given URL. Options iframeWidth, iframeMinWidth, etc. or their corresponding data attributes are used as CSS when present.
- Basic error handling for images that won't load
- New callback: onResize called for new content and when the window is resized.
- onResize is used to automatically resize images if needed.
- current() now returns null if no lightbox is currently opened
- now avoids memory leaks
- onKeyDown() renamed onKeyUp()
- Fix bug in IE8. Thanks a barry!
- Gallery: Bug with beforeOpen callback. Thanks Cristian Bica!
- Re-release, removing afterSlide & beforeSlide and some debugging code
- New option filter to attach lazily like
$(sel).on('click', filter, ...)
. Attaching is done for the whole set, not on each individual element. Attributes of the whole set and the filtered element are combined. - New option otherClose to support extra closing buttons.
- New option root to support appending featherlight elsewhere than on the body.
- New content filter 'text' for plain text messages.
- New callback onKeyDown, beforeContent, afterContent
- Gallery can display mixed content, not just images.
- Gallery defaults are accessible with $.featherlightGallery.defaults
- Callbacks like afterOpen can be set using data-featherlight-after-open
- Gallery inherits Featherlight's prototype and class methods.
- Gallery can be called entirely from javascript.
- Gallery can be navigated using left and right arrow keys.
- Gallery uses its
autoBind
setting to automatically bind galleries. Its recommended to use it with thefilter
setting.
$.featherlight
now always trigger a new lightbox. Use$.fn.featherlight
for attaching events to elements.- The order of the arguments of
$.fn.featherlight
has been reversed, for consistency and ease of use, but remain optional. - The configuration options
open
andclose
have been removed. - The configuration options
autostart
,context
andselector
have been merged to the global$.featherlight.autoBind
. It's also lazily attached, so items added via ajax, for example, will be automatically attached too. - The
$elm
attribute has been removed. - The
config
attribute has been removed and merged with thethis
object. - The
methods
global attribute has been removed. Methods have changed quite a bit. Access the prototype instead if needed. - Content returned from filters isn't cloned anymore.
- Gallery configuration has changed and is no longer nested under
gallery
.
- Small bugs fixed
- Content filter 'jquery' now clones content and bound handlers.
- Bug fix with loading ajax [#63]
- Bug fix with gallery navigation (bis) [#62]
- Bug fix with gallery navigation [#62]
- Fix bower manifest
- Bugfix for IE 8.
- Call
afterClose
callback after the end of the fadeout
- Avoid using global events since they are undocumented and apparently deprecated.
- Fix dialog disappearing for large fixed width content
- Fig gallery navigation on IE
- 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.
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 – Changed closing icon class to featherlight-close-icon
- Improvements for mobile devices
- Many small bugs fixed
- Tests added
- $.fn.featherlight is now chainable
- This.$content in after functions as well as open and close method now references actual elements inside the lightbox
- If open function has no content to open, afterOpen is prevented
-
Hooks! Added before and after functions: ´beforeClose´ ´beforeOpen´ ´afterOpen´ ´afterClose´
-
Manually initialize all config.selector elements after config.autostart = false;
$.featherlight();
- Take care, open and clouse defaults have been rewritten for Hooks!
- Preventing text selection
- Fixed issue #8
- Fixed issue #9
-
Added closeIcon option
-
Added Gallery Configuration Options:
gallery: { previous: '◀', /* Code that is used as previous icon / next: '▶', / Code that is used as next icon / fadeIn: 100, / fadeIn speed when image is loaded / fadeOut: 300 / fadeOut speed before image is loaded */ }
- Added image scale based on viewport height vh
- Added Gallery Extension. Check out the example page.
- Fixed issue #7 where links inside featherlight don't work
- Added configuration option 'openSpeed' and 'closeSpeed' to set animation duration
- Featherlight checks for jQuery and throws an error if not loaded
- Some jslint improvements – Moved minified files to release/ folder
- Using grunt
- Fixed iFrame detection
- Fixed close icon CSS
- Added configuration object 'type' with two keys: type.image: false, type.ajax: false, to manually set type of lightbox
- Fixed behavior with missing data in targetAttr and handling of non found content
- Added support for ESC key to close lightbox
- Renamed option clickBgClose to closeOnBg for consistency
- Improved code readability
- Fixed typos
- Fixed IE8 Issue
- Added support for ajax using data-featherlight="ajax" and a href attribute
- Added support for ajax using data-featherlight="url.html .jQuery-selector"
- Modified the way how images are handeled to match ajax method using data-featherlight="image"
- Added $.featherlight.methods so all methods are accessible
- Improved JS code
- Moved defaults to $.featherlight.defaults
- Added support for images
- Added option to reset css – { resetCss: true }
- Improved CSS to use flexible height and vertical alignment
- Improved JS code
- Added support for jQuery plugin site: http://plugins.jquery.com/featherlight/
- Fixed close behavior
- Added changelog
- Fixed version numbers and dates
- Added support for variant CSS class
- Initial Commit