![cover image](https://wikiwandv2-19431.kxcdn.com/_next/image?url=https://upload.wikimedia.org/wikipedia/commons/thumb/6/69/Lightbox_mockup.jpg/640px-Lightbox_mockup.jpg&w=640&q=50)
Lightbox (JavaScript)
JavaScript library / From Wikipedia, the free encyclopedia
Lightbox is a JavaScript library that displays images and videos by filling the screen, and dimming out the rest of the web page.[1]
![Thumb image](http://upload.wikimedia.org/wikipedia/commons/thumb/6/69/Lightbox_mockup.jpg/640px-Lightbox_mockup.jpg)
The original JavaScript library was written by Lokesh Dhakar.[2] The term Lightbox may also refer to other similar JavaScript libraries. The technique gained widespread popularity due to its simple and elegant style.
The original Lightbox library used two JavaScript libraries, Prototype Javascript Framework[3] and script.aculo.us,[4] for its animations and positioning. In April 2012, the plugin was rewritten for jQuery.[5] The open-source nature of Lightbox encouraged developers to modify and fork the code, resulting in plugins such as Colorbox, Magnific Popup, Slimbox or Thickbox.
Lightbox scripts are dependent upon a browser's JavaScript support.[6] Browsers that do not load the script for whatever reason can instead simply load the image as a separate page load, losing the Lightbox effect but still retaining the ability to display the image.[7]