DescriptionDescription
This event is triggered when the carousel scrolls.
ArgumentsArguments
Argument | Type | Description |
progress | number | How far slider has moved, from 0 at the first slide to 1 at the end |
positionX | number | Position in X axis in pixels. |
ExampleExample
JS
Grid settings – JS field
wpgb.carousel.on( 'scroll', function( progress, positionX ) {
console.log( 'scroll progress', progress * 100 + '%' );
} );