Events

After initialization, the plugin triggers the following events on the element:

Note: Some events are triggered from the constructor, so you have to bind to the events before you initialize the plugin:

$('.jcarousel')

    // Bind first
    .on('jcarouselautoscroll:create', function(event, carousel) {
        // Do something
    })

    // Initialize at last step
    .jcarouselAutoscroll();

create

Triggered on creation of the plugin.

Example

$('.jcarousel').on('jcarouselautoscroll:create', function() {
    // Do something
});

createend

Triggered after creation of the plugin.

Example

$('.jcarousel').on('jcarouselautoscroll:createend', function() {
    // Do something
});

reload

Triggered when the reload method is called.

Example

$('.jcarousel').on('jcarouselautoscroll:reload', function() {
    // Do something
});

reloadend

Triggered after the reload method is called.

Example

$('.jcarousel').on('jcarouselautoscroll:reloadend', function() {
    // "this" refers to the element
});

destroy

Triggered when the destroy method is called.

Example

$('.jcarousel').on('jcarouselautoscroll:destroy', function() {
    // Do something
});

destroyend

Triggered after the destroy method is called.

Example

$('.jcarousel').on('jcarouselautoscroll:destroyend', function() {
    // Do something
});