lokesh / lightbox2

THE original Lightbox script (v2).
http://lokeshdhakar.com/projects/lightbox2/
MIT License
6.17k stars 1.76k forks source link

added option to define a different start image #619

Closed SERFF closed 5 years ago

SERFF commented 6 years ago

Added an option to select an image to start with. In my particular use case the first image was a logo and when clicked, the lightbox should open with the first 'real' image. So I used the following options:

lightbox.option({ 'resizeDuration': 200, 'wrapAround': true, 'imageToStartWith': 1 })

lokesh commented 5 years ago

Closing out older issues and PRs.

Thank you for sharing your code. It's not clear to me how broadly useful the additional option is as most people use the anchor tag's href to reference their starting image.