This is a fork of the original Lightbox 2.7.1.
- Refactored in order to be able to set custom options and initialize
Lightboxinside your code anywhere you need. - Fixed image blicking during change especially when fade durations are small.
Introduced a new option:
hideImageDuringChange. - Added options to tune more fade durations:
loaderFadeDurationimageFadeDurationdetailsFadeDuration
- New feature: previews. Previous and next clickable image previews are shown.
- Related options:
showPreviews- turns on/off the feature;overridePreviewsPosition(values: "center") - if specified then the script overrides the previews position and ignores CSS.
- Use element data attr
data-lightbox-thumbnailto specify thumbnail image for a preview.
- Related options:
- Trigger events:
lightbox.changedon image change;lightbox.closedon lightbox close.
- Disabled closing on image/loader click.
- Dropped support of
relattrs. - EXPERIMENTAL: Added support of Youtube embedded videos.
The original lightbox script. Eight years later — still going strong!
by Lokesh Dhakar
lokeshdhakar.com
twitter.com/lokesh
- Scott Upton (uptonic.com), Peter-Paul Koch (quirksmode.com), and Thomas Fuchs (mir.aculo.us) for ideas, libs, and snippets.
- Artemy Tregubenko (arty.name) for cleanup and help in updating to latest proto-aculous in v2.05.
- Matthias Vill (https://github.com/TheConstructor)
- XhmikosR - (https://github.com/XhmikosR)
- mwasson - (https://github.com/mwasson)
- Heleen v.d. S - (https://github.com/Heleen)
- careilly - (https://github.com/careilly)
- and many others. Thanks!!!
##License Licensed under the Creative Commons Attribution 2.5 License
- Free for use in both personal and commercial projects.
- Attribution requires leaving author name, author homepage link, and the license info intact.