I have a button on my website which trigger the height of the carrousel, and for it to work properly, it refresh the carrousel through "resize"
but sadly, when it force refresh, the default Flickity option are back (arrow, pagedot, draggable).
var $carousel = $('.carousel').flickity();
$('.button').on('click', function () {
$carousel.toggleClass('is-expanded')
setTimeout(function () {
$carousel.flickityResponsive('resize');
}, 600);
$('.caption').toggleClass('hidden');
});
I have a button on my website which trigger the height of the carrousel, and for it to work properly, it refresh the carrousel through "resize" but sadly, when it force refresh, the default Flickity option are back (arrow, pagedot, draggable).