Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vuetify default carousel CSS selectors, for transition duration reduction

enter image description hereenter image description hereI need a transition that does not produce the dreaded image blinking for a v-carousel-item. Ideally it's a smooth and quick fade that would work for both transition and reverse-transition. I have tried all the transitions built in to Vuetify as well as a couple of custom ones but nothing works. My issue can be seen CodePen of the issue and in a reported at GitHub Vuetify Issue.

<div id="app">
  <v-app>
    <v-carousel>
      <v-carousel-item
        v-for="(item,i) in items"
        :key="i"
        :src="item"
        reverse-transition="fade-transition"
        transition="fade-transition"
      ></v-carousel-item>
    </v-carousel>
  </v-app>
</div>
like image 729
Curious Avatar asked Feb 28 '26 19:02

Curious


1 Answers

Here is a CSS workaround for the currently open issue: https://github.com/vuetifyjs/vuetify/issues/10809#issuecomment-629468386

.v-carousel .v-window-item {
  position: absolute;
  top: 0;
  width: 100%;
}

Here is a codepen with the workaround, inside vertical v-tabs.

like image 135
Zed Home Avatar answered Mar 02 '26 10:03

Zed Home



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!