metafizzy / metafizzy/flickity

Disable prev/next buttons for contain

Open
#289 18 comments 2 reactions 0 assignees View on GitHub
feature request
Dominant language
JavaScript
Stars
7.6k
Forks
593
PR merge metrics
No merged PRs in 30d

Description

I'm wondering if you have any suggestions for determining if you've arrived at the boundary of the carousel when the contain option is specified. (So that one could say for instance disable the next or previous buttons).

When not using the indicator dots for position feedback this kind of behavior _appears_ confusing, though I understand the logic here.

Example:

![contain-carousel](https://cloud.githubusercontent.com/assets/112297/11218816/21524e86-8d25-11e5-8342-447aa2d5be7b.gif)

Contributor guide

Open the contributing guide

Research direction

Start by reviewing Flickity's contain option and the existing prev/next button behavior. Determine how the carousel exposes arrival at either boundary, then define disabled-button behavior for contained carousels and verify it without relying on indicator dots.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.