Download
User Rating: 4.3/5 ( 1 votes)
Infinity lightbox is a Small, fast and adaptive lightbox jquery plugin. Html5 and css3 based and mobile ready out of the box.
Core Features:
-
Fantastic small - about 10Kb minifed .js and .css and nothing else.
-
Ready for mobile use out of the box, responsive and adaptive.
-
Support swipe on devices with sensor input.
-
Support arrow keys control on devices with physical keyboard.
-
Based on css3 transactions and transforms - full hardware accelerated and very fast everywhere.
-
Simple for use: jQuery(el).infinityLightbox(); by default and it work.
Browsers supported
Name
|
Version |
Internet Explorer |
10+ |
IE Mobile |
10+ |
Google Chrome / Chromium |
5.0+ |
Safari Mac |
4.0+ |
Safari Mobile |
3.2+ |
Opera |
12.1+ |
Opera Mobile |
12.1+ |
Mozilla Firefox |
5.0+ |
Android |
2.1+ |
Firefox Android |
26+ |
BB Browser |
7.0+ |
1. INCLUDE JS AND CSS FILES
<script src="//code.jquery.com/jquery-latest.min.js"></script>
<script src="./js/jquery.infinity-light.js"></script>
<link rel="stylesheet" href="./css/infinityLightbox.css">
2. HTML
<a href="yourImage.jpg" data-img="yourImage.jpg" class="gallery">
<img src="yourImageThumbnail.jpg" />
</a>
3, JAVASCRIPT
jQuery(document).ready( function($) {
$('.gallery').infinityLightbox();
});
4. OPTIONS
jQuery(el).infinityLightbox({
'margin': 100, // Margin on desktop
'marginMobile': 10, // Margin on mobile
'speed1': 200, // Resizing anomation speed
'speed2': 200, // Image opacity change animation speed
'caption': 'Изображение $a из $b', // Caption string, $a,$b replace with index and number of images
'helper': true, // Show or hide helper
'helperType': 'number', // Helper type 'number' for 'caption' and 'alt' for alt attr of miniature image
'animateImage': function() // Programm animation of image emersion
});