Open jstnthms opened 8 years ago
Is there a built-in way to delay after manually transitioning? (eg. clicking the "prev" / "next" elements.)
I'm aware that I can act on certain events to achieve this:
// example is incomplete I know! $('#slideshow').cycle().on('cycle-update-view', function() { if (is_manual_transition) { $('#slideshow').cycle('pause'); setTimeout(function() { $('#slideshow').cycle('resume'); }, settings.timeout + 500); // add my custom delay } });
but I'm interested in a simpler method where the plug-in does the heavy lifting:
$('#slideshow').cycle({ manualDelay: 500, // meaning delay an extra 500ms on manual transitions });
Is there a built-in way to delay after manually transitioning? (eg. clicking the "prev" / "next" elements.)
I'm aware that I can act on certain events to achieve this:
but I'm interested in a simpler method where the plug-in does the heavy lifting: