1. The parent plugin could attach to one element through the HTML changes. The JS change - you need to explicitly bind the lightbox to click event. In the current plugin - you do not need to edit any of the existing HTML. Just add one line of JS to view all the images (or probably a select few) in Lightbox on the page.
2. While providing this feature, it might not be evident to the user that clicking on the image shows it inside Lightbox. Hence the tooltip.
Yes, that was actually unfair of me to say that it's almost like every other lightbox. At the time I was thinking about something like this http://leandrovieira.com/projects/jquery/lightbox/, which I've used before. It too doesn't require you to do some major HTML surgery.
After re-reading the OP it seems like I should try it out next time I need to use a lightbox, though.
I don't get this - where is the fullscreen mode? To me it's displaying just like any other lightbox.
On the subject of lightboxes, anyone seen a good alternative for use on mobile devices? Responsive designs need something so that on a phone they still aren't using the good 'ol lightbox script that works well on desktop...
Full-screen could actually be mis-leading. I meant Lightbox only. The original Lightbox plugin does resize the image to fit the screen, but probably all Lightboxes work like that.
maybe it's just me but there seems to be a bug when viewing this on the ipad. I clicked on an image and could not figure out how to close the full screen preview. Just something you should look into.
12 comments
[ 4.2 ms ] story [ 45.1 ms ] threadIf you are using Bootstrap Lightbox separately - make sure the other lightbox div id dont conflict with 'demoLightbox'
1. The parent plugin could attach to one element through the HTML changes. The JS change - you need to explicitly bind the lightbox to click event. In the current plugin - you do not need to edit any of the existing HTML. Just add one line of JS to view all the images (or probably a select few) in Lightbox on the page.
2. While providing this feature, it might not be evident to the user that clicking on the image shows it inside Lightbox. Hence the tooltip.
After re-reading the OP it seems like I should try it out next time I need to use a lightbox, though.
I think I just took the parent plugin handicap & fixed it. But guess Jquery plugin is already doing it the way I am doing it.
Thanks for pointing.
On the subject of lightboxes, anyone seen a good alternative for use on mobile devices? Responsive designs need something so that on a phone they still aren't using the good 'ol lightbox script that works well on desktop...
See the thread: https://news.ycombinator.com/item?id=5643801
Like they had the time to examine 52412 lightbox plugins and decide there were no matches...
Unheap has a good selection: http://www.unheap.com/section/media/dialogs-lightboxes/