‹‹ cycle homejQuery Cycle Plugin - 'end' Callback Demo

The 'end' option is used with the 'autostop' or 'nowrap' option to declare a callback function to be invoked when the slideshow terminates. The slideshow below contains three slides.

$('#slideshow').cycle({
    fx:      'scrollHorz',
    timeout:  2000,
    autostop: 1,
    end:      function() { 
        alert('The slideshow has ended.'); 
    }
});