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

$('#slideshow').cycle({
    fx:     'scrollHorz',
    prev:   '#prev',
    next:   '#next',
    after:   onAfter,
    timeout: 0
});