Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default Flickity option turning on when we manually "resize" #24

Open
scheylon opened this issue Apr 4, 2023 · 1 comment
Open

Default Flickity option turning on when we manually "resize" #24

scheylon opened this issue Apr 4, 2023 · 1 comment
Labels
question Further information is requested

Comments

@scheylon
Copy link

scheylon commented Apr 4, 2023

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');
});
@phucbm
Copy link
Owner

phucbm commented Apr 5, 2023

Hi @scheylon,
Could you reproduce the issue in a CodePen, please?

@phucbm phucbm added the question Further information is requested label Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants