I am trying to create a delay between two cycles of the nivo slider.
Without setTimeout everything works fine (but without delay). So the following example:
$('#slider').nivoSlider({ lastSlide: function(){ $('#slider').data('nivo:vars').stop = true; // setTimeout(function() { $('#slider').data('nivo:vars').stop = false; // }, 2000); }, });
If I uncomment the setTimeout lines, does the slider stop but not start again? Any ideas why?
Update: http://jsfiddle.net/kgYNX/
Second update: I tried this with the wrap function. The function is called, but if I use setTimeout in the new function, it stops working: http://jsfiddle.net/kgYNX/1/
source share