Download
User Rating: 0/5 ( 0 votes)
emloSlightBox is an improved version of the popular Lightbox. It can effectively open images, HTML content, maps, movies and even more.
emloSlightbox is easy to use and does not require configuration - just copy, paste and have fun. But if you do not like the default configuration, you can easily adjust all the options - change the animation speed and slices number, group elements, call functions such as onStart, onComplete, onClose and many more.
-
Easy to use - no programming skills required, just copy, paste and have fun
-
HTML5 compatibility
-
SEO friendly!
-
20 unique transition effects
-
No limits to the number of slightBoxes per page
-
Doesn't need cofiguration to work - it works "out of the box", but you can change what you want - speed, slices etc
-
Simple configuration
-
Valid HTML / CSS
-
Keyboard support
-
Touch navigation support for iOS, Android, IE10 (Windows 8, Blackberry and other)
-
Compatible with all major browsers (IE, Chrome, Firefox, Safari and Opera)
-
Very easy to integrate into any existing website
Source: lightbox.emlogic.pl
1. INCLUDE CSS AND JS FILES
<link rel="stylesheet" href="css/emloSlightBox.css">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
<script src="js/emloSlightBox.js"></script>
2. HTML
<a href="big-image.jpg" title="full caption" class="emloSlightBox">
<img src="small-image.jpg" alt="thumb caption">
</a>
3. JAVASCRIPT
$('a.emloSlightBox').emloSlightBox();
4. OPTIONS
option |
description |
type |
posibilities |
default |
slideShow |
start slideshow |
boolean |
true / false |
false |
slideShowSeconds |
speed of slideshow in seconds |
int |
|
5 |
backgroundOpacity |
background opacity |
float |
0-1 |
.7 |
showSpeed |
speed of content show |
int |
|
400 |
delay |
delay beetween slices |
int |
|
70 |
outOpacity |
opacity of thumb image on mouseout |
float |
0-1 |
.7 |
overOpacity |
opacity of thumb image on mouseover |
float |
0-1 |
1 |
thumbCaptionOpacitySpeed |
speed of thumb opacity change |
int |
|
400 |
showThumbCaptionSpeed |
speed of thumb caption opacity change |
int |
|
400 |
transitions |
transitions |
array |
1 ... 20 |
[20, 18, 11, 13, 5, 4, 3, 1, 2, 17, 19, 16, 15, 14, 12, 10, 9, 8, 7, 6] |
shuffleTransitions |
random transitions from array |
boolean |
true / false |
true |
verticalSlices |
number of vertical slices |
int |
|
6 |
horizontalSlices |
number of horizontal slices |
int |
|
6 |
boxesInLine |
box slices in line |
int |
|
4 |
boxLines |
lines of box slices |
int |
|
3 |
language |
language |
string |
pl, en |
en |
text |
text for buttons |
object |
|
{
en: {
prev: 'prev',
next: 'next',
close: 'close',
play: 'slideshow',
pause: 'stop slideshow'
},
pl: {
prev: 'poprzednie',
next: 'następne',
close: 'zamknij',
play: 'autoodtwarzanie',
pause: 'zatrzymaj
autoodwtarzanie'
}
}
|
backgroundClass |
class name for background |
string |
|
emloSlightBoxBG |
contentClass |
class name for emloSlightBox content div |
string |
|
emloSlightBoxContent |
thumbCaptionClass |
class name for thumb caption |
string |
|
altTag |
fullCaptionClass |
class name for full caption |
string |
|
caption |
counterClass |
class name for counter |
string |
|
counter |
closeClass |
class name for 'close' button |
string |
|
close |
prevClass |
class name for 'prev' button |
string |
|
prev |
nextClass |
class name for 'next' button |
string |
|
next |
slicesContainerClass |
class name for slices container div |
string |
|
slices-container |
sliceContentClass |
class name for slice content div |
string |
|
slice-content |
sliceClass |
class name for slice |
string |
|
slice |
playClass |
class name for 'play' button |
string |
|
play |
pauseClass |
class name for 'pause' button |
string |
|
pause |
preloaderContainerClass |
class name for preloader container div |
string |
|
preloader-container |
preloaderClass |
class name for preloader |
string |
|
preloader |
5. METHODS
$('a.emloSlightBox').emloSlightBox({
onStart: function(){
alert('Welcome!');
},
onClose: function(){
alert('Goodbye.');
},
onComplete: function(){
alert('Mission completed');
}
});
6. LANGUAGES
$('a.emloSlightBox').emloSlightBox({
text: {
fr: {
next: 'le next',
prev: 'le prev',
close: 'le close',
play: 'le play',
pause: 'le pause'
},
en: {
prev: 'prev',
next: 'next',
close: 'close',
play: 'slideshow',
pause: 'stop slideshow'
}
},
language: $('html').attr('lang')
});