vue3-carousel icon indicating copy to clipboard operation
vue3-carousel copied to clipboard

Displaying 3 Items with WrapAround

Open florianbruening opened this issue 3 years ago • 1 comments

Discussed in https://github.com/ismail9k/vue3-carousel/discussions/151

Originally posted by florianbruening February 9, 2022 Hello there,

im trying to display 3 items with wrap around.

My issue right now:

The right most item is not displayed and if i navigate via the buttons or the pagination it always scrolls left.

<carousel
      wrapAround
      :items-to-show="2"
      snap-align="center"
    >
      <slide v-for="num in 3" :key="num">
        <div class="h-100 w-full bg-red-500">
          Test {{ num }}
        </div>
      </slide>
      <template #addons="{ slidesCount }">
        <Navigation v-if="slidesCount > 1" />
        <pagination v-if="slidesCount > 1" />
      </template>
</carousel>

Having 3 items it looks like this: image

As soon as i display 4 items it works as expected: image

Is there something i can do to have the last behaviour even if i only have 3 items?

florianbruening avatar Feb 09 '22 15:02 florianbruening

same issue.

alexmillman23 avatar May 07 '22 15:05 alexmillman23