Additional JS Settings
1. Autoplay / Randomize
Disable Autoplay:
jQuery('#rev_slider_1').show().revolution({
stopLoop: 'on',
stopAfterLoops: 0,
stopAtSlide: 1,
/* ****************** */
/* settings continued */
/* ****************** */
});
Auto-Rotate:
jQuery('#rev_slider_1').show().revolution({
stopLoop: 'off',
stopAfterLoops: -1,
stopAtSlide: -1,
/* ****************** */
/* settings continued */
/* ****************** */
});
2. Dotted Overlay / Shadows
Dotted Overlays:
Options are “twoxtwo”, “twoxtwowhite”, “threexthree” and “threexthreewhite”.
jQuery('#rev_slider_1').show().revolution({
/* 2x2 transparent dotted overlay graphic */
dottedOverlay: 'twoxtwo',
/* ****************** */
/* settings continued */
/* ****************** */
});
Shadows:
Choose a number between 1-6 to preview the different available shadow options.
jQuery('#rev_slider_1').show().revolution({
/* 1-6 drop-shadow options */
shadow: 1,
/* ****************** */
/* settings continued */
/* ****************** */
});
3. Mobile Visibility / Fallbacks
- on
- off
- on
- off
- on
- off
- on
- off
jQuery('#rev_slider_1').show().revolution({
hideThumbsOnMobile: 'off',
hideSliderAtLimit: 0,
hideCaptionAtLimit: 0,
hideAllCaptionAtLilmit: 0,
fallbacks: {
simplifyAll: 'on',
nextSlideOnWindowFocus: 'off',
disableFocusListener: false
}
/* ****************** */
/* settings continued */
/* ****************** */
});
Replace the entire Slider with a simple Image for mobile or IE8
<div class="rev_slider_wrapper"
data-aimg="assets/images/notgeneric_bg5.jpg"
data-amobile="enabled"
data-aie8="disabled">
<div id="rev_slider_1" class="rev_slider" data-version="5.4.5" style="display:none">
<ul>
<!-- BEGIN SLIDE -->
<li data-transition="fade">
4. Stop Slider out of Viewport
Options that can be used to pause/resume the slider when the slider is scrolled into and out of view on a web page. And also useful for only starting the slider once its been scrolled into view (for sliders that exist “below the fold”).
- true
- false
- wait
- pause
- true
- false
jQuery('#rev_slider_1').show().revolution({
viewPort: {
enable: true,
outof: 'wait',
visible_area: '80%',
presize: true
},
/* ****************** */
/* settings continued */
/* ****************** */
});