Slider Revolution WP
09.27.2016
Images that pan horizontally should be sized/cropped (in Photoshop) to 2x the Layers Grid width, and 1x the Layers Grid height.
For the live demo above, the Layers Grid Size is 900×470. In this example, images that are panning horizontally are 1800×470.
Images that pan vertically should be sized/cropped (in Photoshop) to 2x the Layers Grid height, and 1x the Layers Grid width.
For the live demo above, the Layers Grid Size is 900×470. In this example, images that are panning vertically are 900×940.
Change the “1” in the “revapi1” part below to match your slider’s ID.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
/* change the "1" in the "revapi1" part below to match your slider's ID: https://www.themepunch.com/wp-content/uploads/2016/08/slider-id.png */ var api = revapi1; /* no need to edit below */ api.on('revolution.slide.onchange', function(e, data) { punchgs.TweenLite.killDelayedCallsTo(nextSlide); punchgs.TweenLite.delayedCall((data.currentslide.data('delay') * .001) - 1, nextSlide); }); function nextSlide() { api.revnext(); } |