There are so many implementations of the lightbox, which is your favourite to use for your custom site? (javascript based)

I generally use Lightbox2

  • Can you provide more information on what you mean by lightbox (pure JS implementation, for integration on custom sites, plugin to existing CMS or Blog, what?). One-sentence questions are borderline down-vote for me. – JasonBirch Aug 17 '10 at 16:52
  • Good point, clarified a little, was just looking at general custom site implementations – Wil Aug 17 '10 at 17:20
  • I'm not sure that clarification helped! By "custom" do you mean "hand-coded" as opposed to "off-the-shelf product"? Most lightboxes I've used (including the one in my example) are JS implementations, so it doesn't really matter whether the site runs on wordpress or compiled C code. – Bobby Jack Aug 17 '10 at 17:23

Fancybox is a very nice one I recently discovered. It handles youtube videos particularly well.

| improve this answer | |

I like Nick Stakenburg's Lightview, even though it's based on prototype and it requires a lot of frameworks. From my testing, it behaves identical in all the browsers.

| improve this answer | |
  • +1 I've been looking for a good prototype based light box – John Conde Aug 17 '10 at 18:50
  • This one is solid. ;) – Alex Aug 18 '10 at 5:50

I like PrettyPhoto. It's lightweight, easy to use, built on jQuery, can open anything you could need.

| improve this answer | |

ColorBox is pretty good, though I have had a problem with smaller images and/or longer title captions (it does not stretch the bounding box if the text wraps).

| improve this answer | |

The classic one is ThickBox. It is no longer maintained but is great if you want a nice, simple lightbox with no fuss.

| improve this answer | |

I like LyteBox for it's small size. Although I had to modifiy it to support "close on click" feature.

| improve this answer | |

Shadowbox is pretty sweet. Not only it can generate the usual image galeries, it also can generate lightboxed out of videos, flash or even html (good for contextual help).
It also has many ways of handling large images (crop, pan, zoom, etc), and you can close the box with esc.
Standalone, but compatible with jquery.


If you're looking for a flexible lightbox that can handle any type of media, check out mediaboxAdvanced for MooTools.

It supports:

  • Images
  • Twitter
  • Social Video
  • Flash media
  • Quicktime
  • Inline
  • HTML
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.