SSENSE/vue-carousel

Feature Request: Allow dynamic number of slides

Open

#268 ouverte le 20 août 2018

Voir sur GitHub
 (3 commentaires) (0 réactions) (0 assignés)JavaScript (1 705 stars) (513 forks)batch import
featuregood first issuehelp wanted

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?

Guide contributeur