malsup/cycle — Issue #85: speed: 0 and after: function(curr,next,opts)
Author: fredr
Created: 2011-12-09 10:28:31+00:00
State: open

When speed is set to 0, opts.currSlide will report previous slide number, exept on load.
Setting speed to > 0 functions correctly

The following code will alert 0 on load, then when next slide is clicked, 0 is reported again, then 1, 2, 3.. and so on.

$('#holder_on_floor').cycle({
fx: 'fade',
cleartype: true,
cleartypeNoBg: true,
speed: 0,
timeout: 0,
next: '#btn_nav_on_floor',
after: function(curr,next,opts) {
alert(opts.currSlide)
}
});