options
All options are optional, but some of them are recommended:
elems:
elems: '> a'
jQuery selector which indicates elems of gallery.
template:
template: undefined
template: 'footer'
For now there is only one available template: footer(see the DEMO). How it works? If you define template in Your options, then Scregal will apply options defined for this template. Later are considered options defined by You.
maxWidth:
maxWidth: '85%'
Max width of central image, if there is a percent value it depends on screen width.
centerDisappearAnimation:
centerDisappearAnimation: { opacity: 0 }
Object with properties to disappear center image.
sideDisappearAnimation:
sideDisappearAnimation: { opacity: 0 }
Object with properties to disappear side images.
centerAppearAnimation:
centerAppearAnimation: { opacity: 1 }
Object with properties to appear center image.
sideAppearAnimation:
sideAppearAnimation: { opacity: 1 }
Object with properties to appear side images.
disappearDuration:
disappearDuration: 500
Duration for disappearing images.
appearDuration:
appearDuration: 500
Duration for appearing images.
disappearEasing:
disappearEasing: 'easeInOutExpo'
Easing to disappear images.
appearEasing:
appearEasing: 'easeInOutExpo'
Easing to appear images.
hideFrontWhenAutoGallery:
hideFrontWhenAutoGallery: false
Determine whether to show or hide front title box while auto gallery is running
runAutoGalleryAfterDelay:
runAutoGalleryAfterDelay: 5000
Determine when auto gallery is about to turn its on, since your last move on screen.
autoGalleryDelay:
isNavigationHidden: 3000
Time interval to display image while auto gallery is running after it finished animation and before it moves to the next photo.
init:
init: true
Define whether to init Scregal automaticly. Otherwise you have to do this by method
.init()
prev:
prev: undefined
jQuery selector to indicate on navigation prev element.
next:
next: undefined
jQuery selector to indicate on navigation next element.
close:
close: undefined
jQuery selector to indicate on navigation close element.
addFront:
addFront: true
Determine whether to show or hide front title box.
frontContent:
frontContent: function() { }
addFront: true
, it defines the content for a whole gallery.frontTitle:
frontTitle: function() {
return $('<div class="scregalSubtitle">');
}
addFront: true
then, unlike frontContent:
it defines the title for every elem of the gallery.basicHeight:
basicHeight: function() {
return $(window).height();
}
The height of a space when gallery is working
basicWidth:
basicWidth: function() {
return $(window).width();
}
The width of a space when gallery is working
getGalleryName:
getGalleryName: function() {
return 'rel';
}
elems: