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

Disable previous / next buttons if there are no other slides #576

Closed
Shperung opened this issue Jun 20, 2017 · 1 comment
Closed

Disable previous / next buttons if there are no other slides #576

Shperung opened this issue Jun 20, 2017 · 1 comment

Comments

@Shperung
Copy link

Shperung commented Jun 20, 2017

If there are 3 elements in the slider, they are placed in the container. How to not show previous / next buttons, if there are no other slides. If the window size is changed, if the width of the container changes, the buttons should appear.
const flickityFiltersListSlider = new Flickity('.js--filters-list-slider', { contain: true, pageDots: false, bgLazyLoad: 2, initialIndex: 1, dragThreshold: 40, cellAlign: 'left', arrowShape: { x0: 10, x1: 50, y1: 50, x2: 50, y2: 40, x3: 20 } });

slide
example in https://codepen.io/Shperung/pen/bRWbpg.

@desandro
Copy link
Member

See #289 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants