flickity
flickity copied to clipboard
Real-time width adjust (custom)
Hey,
Has anyone been able to achieve, or at least know the way to reproduce something as close to this as possible?
Link to video: https://cln.sh/t1IrOA Source: https://p9.moscow/en/
I've been so far using reposition, which kind of works, but only after settling. As you can see in the video, it needs to adjust in real-time. In my case, I need all slides to be 380px by default and the selected one to be 720px.
$oCarousel.on( 'settle.flickity', function( event, index ) {
$oCarousel.flickity( 'reposition' );
} );
Thank you for your help!