17

Does anyone know of a small, limited functionality lightbox built with pure javascript? This is for an embeddable widget, thus the reason of not using jquery. All I really need is creating an overlay for a specific div or simply by passing some HTML.

Makyen
  • 31,849
  • 12
  • 86
  • 121
  • 1
    I've rolled back a couple of edits here which attempted to make this question on-topic by eliminating the off-topic request for resources. Unfortunately, the question started out being *only* a request for resources and all of the existing answers are responding to that request by giving links to resources. There is no way to change *this* question such that it's not asking for resources without invalidating the answers, which isn't permitted. – Makyen Mar 30 '21 at 00:20
  • 1
    If there were already answers which provided more than just resources, the question might be able to be edited to be on-topic and, perhaps, the answers which just provided resources deleted. That's not the case here. The only way to have the question be on-topic would be to completely rewrite the question and delete all the answers. That's effectively the same as just asking a new question. So, if someone wants a question which is similar to this, but which asks how to create a lightbox, rather than asking for resources, then [ask that question](https://stackoverflow.com/questions/ask). – Makyen Mar 30 '21 at 00:21

3 Answers3

9

There's a great list/comparison of lightboxes here. You can quickly scan which require a JS library (jQuery, MooTools, etc.) and which don't, and you can also see what features each supports. There's a sizable chunk of them that don't use any JS library, so you should be able to easily find one to suit your needs.

Here's a few to get you started:

Josh Leitzel
  • 15,089
  • 13
  • 59
  • 76
1

I am currently developing a light responsive Lightbox just for images, without the need for jQuery etc... and with IE8+ Support.

You can download it here

Please report any bugs or issues. Thanks!

Felix Hagspiel
  • 2,634
  • 2
  • 30
  • 43
0

I was looking for a more of a light weight modal dialog, and I found Zebra Dialog which uses Jquery.

http://stefangabos.ro/jquery/zebra-dialog/

Nate Flink
  • 3,934
  • 2
  • 30
  • 18