Slider Revolution WP
09.27.2016
Use the “Mouse Scroll Navigation” located here instead with version 5.0+
Just keep in mind that the user will only be able to scroll the actual page when their mouse is not hovering over the slider, so whether this option will be good for your site will largely depend on your site’s setup:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
(function() { // change "revapi1" here to whatever API name your slider uses (see notes below) var slider = revapi1; slider.parent().on('mousewheel DOMMouseScroll', function(event) { if(event.originalEvent.wheelDelta > 0 || event.originalEvent.detail < 0) { slider.revprev(); } else { slider.revnext(); } }); })() |
Slider Revolution 4.5 introduced a new “Custom JavaScript” section inside the slider’s main settings page, where the above script can be added. If you aren’t using version 4.5 or higher, click here for instructions about how to update the plugin.