Last active
June 15, 2018 15:36
-
-
Save sambgordon/7f4e364517b2aaa626551c855a2e7c46 to your computer and use it in GitHub Desktop.
Use WP rev slider on non-wordpress site
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Revolution Slider parameters | |
//With jquery-dependent rs-plugin in place, calls necessary elements to run this awesome plugin on whatever site you want. | |
jQuery(document).ready(function() { | |
jQuery('.tp-banner').show().revolution( | |
{ | |
dottedOverlay:"none", | |
delay:14000, | |
startwidth:1170, | |
startheight:720, | |
hideThumbs:200, | |
thumbWidth:100, | |
thumbHeight:50, | |
thumbAmount:5, | |
navigationType:"none", | |
navigationArrows:"solo", | |
navigationStyle:"preview4", | |
touchenabled:"on", | |
onHoverStop:"off", | |
swipe_velocity: 0.7, | |
swipe_min_touches: 1, | |
swipe_max_touches: 1, | |
drag_block_vertical: false, | |
parallax:"mouse", | |
parallaxBgFreeze:"on", | |
parallaxLevels:[7,4,3,2,5,4,3,2,1,0], | |
keyboardNavigation:"off", | |
navigationHAlign:"center", | |
navigationVAlign:"bottom", | |
navigationHOffset:0, | |
navigationVOffset:20, | |
soloArrowLeftHalign:"left", | |
soloArrowLeftValign:"center", | |
soloArrowLeftHOffset:20, | |
soloArrowLeftVOffset:0, | |
soloArrowRightHalign:"right", | |
soloArrowRightValign:"center", | |
soloArrowRightHOffset:20, | |
soloArrowRightVOffset:0, | |
shadow:0, | |
fullWidth:"on", | |
fullScreen:"off", | |
spinner:"spinner4", | |
stopLoop:"off", | |
stopAfterLoops:-1, | |
stopAtSlide:-1, | |
shuffle:"off", | |
autoHeight:"off", | |
forceFullWidth:"off", | |
hideThumbsOnMobile:"off", | |
hideNavDelayOnMobile:1500, | |
hideBulletsOnMobile:"off", | |
hideArrowsOnMobile:"off", | |
hideThumbsUnderResolution:0, | |
hideSliderAtLimit:0, | |
hideCaptionAtLimit:0, | |
hideAllCaptionAtLilmit:0, | |
startWithSlide:0, | |
videoJsPath:"rs-plugin/videojs/", | |
fullScreenOffsetContainer: "" | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment