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();Triggered on creation of the plugin.
$('.jcarousel').on('jcarouselautoscroll:create', function() {
// Do something
});Triggered after creation of the plugin.
$('.jcarousel').on('jcarouselautoscroll:createend', function() {
// Do something
});Triggered when the reload method is called.
$('.jcarousel').on('jcarouselautoscroll:reload', function() {
// Do something
});Triggered after the reload method is called.
$('.jcarousel').on('jcarouselautoscroll:reloadend', function() {
// "this" refers to the element
});Triggered when the destroy method is called.
$('.jcarousel').on('jcarouselautoscroll:destroy', function() {
// Do something
});Triggered after the destroy method is called.
$('.jcarousel').on('jcarouselautoscroll:destroyend', function() {
// Do something
});