We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Does flickity 3 offer matchmedia support? I saw an old v2 demo using jquery on Codepen. But, what about v3 with vanilla js?
Am I doing something wrong?
const options = { cellAlign: 'left', contain: true, pageDots: false, wrapAround: false, groupCells: 1 }; const flkty = new Flickity( '.carousel', options); const mediaQueryList = window.matchMedia('(min-width: 600px)'); if(mediaQueryList.matches) { options.prevNextButtons = false; }
The text was updated successfully, but these errors were encountered:
You need to set prevNextButtons before initializing Flickity
prevNextButtons
const options = { cellAlign: 'left', contain: true, pageDots: false, wrapAround: false, groupCells: 1 }; const mediaQueryList = window.matchMedia('(min-width: 600px)'); if(mediaQueryList.matches) { options.prevNextButtons = false; } const flkty = new Flickity( '.carousel', options);
Sorry, something went wrong.
No branches or pull requests
Does flickity 3 offer matchmedia support? I saw an old v2 demo using jquery on Codepen. But, what about v3 with vanilla js?
Am I doing something wrong?
The text was updated successfully, but these errors were encountered: