Super Simple jQuery Image Lightbox Plugin - stupidbox

Super Simple jQuery Image Lightbox Plugin - stupidbox
File Size: 4.26 KB
Views Total:
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

stupidbox is a super tiny, CSS-less jQuery plugin which allows you to display your image as a background in a fullscreen, unobtrusive modal window with one JS call.

How to use it:

1. Include the JavaScript file jquery.stupidbox.js on pages where needed. Make sure to include it after jQuery JavaScript library as follow.

<script src="jquery.min.js"></script>
<script src="jquery.stupidbox.js"></script>

2. Wrap the thumbnails into a links which point to the large version of your images.

<a href="1.jpg">
  <img src="thumb-1.jpg">
</a>

<a href="2.jpg">
  <img src="thumb-2.jpg">
</a>

...

3. Call the stupidbox() method on the a tag and we're done.

$("a").stupidbox();

Changelog:

2018-09-13

  • Add stupid closing icon. Just X letter.

This awesome jQuery plugin is developed by starikovs. For more Advanced Usages, please check the demo page or visit the official website.