SSENSE/vue-carousel

Feature Request: Allow dynamic number of slides

Open

#268 opened on Aug 20, 2018

View on GitHub
 (3 comments) (0 reactions) (0 assignees)JavaScript (513 forks)batch import
featuregood first issuehelp wanted

Repository metrics

Stars
 (1,705 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

I have a dynamic number of images I want to display in your carousel. For large screens I want to display up to 8 slides per page. But since the number of images is dynamic I might end up having only 2 images to display. In that case the slide takes up way too much space.

Example: https://codesandbox.io/s/n3mkw7z7q0 I highlighted the background of each slide to easily see how much space it takes up.

It would be great if there was a way to deal with this problem, maybe by being able to set the flex-basis yourself?

Contributor guide