Carousel scroll

DescriptionDescription

This event is triggered when the carousel scrolls.

ArgumentsArguments

ArgumentTypeDescription
progressnumber How far slider has moved, from 0 at the first slide to 1 at the end
positionXnumberPosition in X axis in pixels.

ExampleExample

JS
Grid settings – JS field
wpgb.carousel.on( 'scroll', function( progress, positionX ) {
	
	console.log( 'scroll progress', progress * 100 + '%' );
	
} );