Light box is a JavaScript library that displays images and videos by filling the screen, and dimming out the rest of the web page.
The original JavaScript library was written by Lokesh Dhakar.The term
Light box may also refer to other similar JavaScript libraries. The technique gained widespread popularity due to its simple and elegant style.
The original
Light box library used two JavaScript libraries, Prototype Javascript Framework andscript.aculo.us, for its animations and positioning. In April 2012, the plugin was rewritten for Query.The open-source nature of Lightbox encouraged developers to modify and fork the code, resulting in plugins such as Colorbox, Magnific Popup,
Slim light box or Thickbox.
Light box scripts are dependent upon a browser's JavaScript support,. Many
Light box scripts use unobtrusive JavaScript. Browsers that do not load the script for whatever reason can instead simply load the image as a separate page load, losing the
Light box effect but still retaining the ability to display the image.