Skip to content
This repository was archived by the owner on Aug 29, 2019. It is now read-only.

phts/lightbox2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lightbox-phts

This is a fork of the original Lightbox 2.7.1.

Improvements

v1.0.0

  • Refactored in order to be able to set custom options and initialize Lightbox inside 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:
    • loaderFadeDuration
    • imageFadeDuration
    • detailsFadeDuration
  • 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-thumbnail to specify thumbnail image for a preview.
  • Trigger events:
    • lightbox.changed on image change;
    • lightbox.closed on lightbox close.
  • Disabled closing on image/loader click.
  • Dropped support of rel attrs.
  • EXPERIMENTAL: Added support of Youtube embedded videos.

The original lightbox script. Eight years later — still going strong!

Demo and basic instructions

Goto the Lightbox2 page

Credits

Author

by Lokesh Dhakar
lokeshdhakar.com
twitter.com/lokesh

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.

About

An improved fork of Lokesh Dhakar's Lightbox 2.7.1

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 82.5%
  • CSS 17.5%