Responsive jQuery LightBox Plugin - ClassyBox
File Size: | 1.49 KB |
---|---|
Views Total: | 8932 |
Last Update: | |
Publish Date: | |
Official Website: | Go to website |
License: | MIT |

ClassyBox is a fancy jQuery Lightbox Plugin that supports for video, gallery, Social Media, AJAX content and more.
How to use it:
1. Include necessary elements in your page:
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> <script type="text/javascript" src="js/jquery.classybox.js"></script> <script type="text/javascript" src="js/jwplayer.js"></script> <script type="text/javascript" src="js/jwplayer.html5.js"></script> <link rel="stylesheet" type="text/css" href="css/jquery.classybox.css" />
2. Markup
<a class="showme" href="images/demo/1.jpg" title="First Image"> <img src="images/demo/1_tb.jpg" alt="This is a longer description" /> </a>
3. Call the function
<script type="text/javascript"> $(document).ready(function(){ $(".showme").classybox({ widthWindow: : 900 }); }); </script>
4. Options
- height - height of the classybox window.
- width - width of the classybox window.
- iframe - pull the contents via an iframe.
- inline - pull the contents inline from the DOM.
- ajax - pull the contents via an AJAX request.
- social - should the plugin display social media links?
This awesome jQuery plugin is developed by class.pm. For more Advanced Usages, please check the demo page or visit the official website.