I use Flickity v2.3.0 on my shopify theme.
I want to trigger some custom actions when detecting the settle event of flickity carousel. However, I added the following code at the end of my flickity.js but there is no settle event when i change from slide to slide. You can have a look at the following webpage and observe the settle event is not logged: https://ezokofishing.com/products/chaos-tackle-medussa-micro
CODE ADDED
var $carousel = $('.carousel').flickity();
$carousel.on( 'settle.flickity', function( event, index ) {
console.log( 'Flickity settled at ' + index );
});
Hello,
I use Flickity v2.3.0 on my shopify theme. I want to trigger some custom actions when detecting the settle event of flickity carousel. However, I added the following code at the end of my flickity.js but there is no settle event when i change from slide to slide. You can have a look at the following webpage and observe the settle event is not logged: https://ezokofishing.com/products/chaos-tackle-medussa-micro
CODE ADDED var $carousel = $('.carousel').flickity();
$carousel.on( 'settle.flickity', function( event, index ) { console.log( 'Flickity settled at ' + index ); });