How to use "vuetify" transitions on my components?

YanDatsiuk picture YanDatsiuk · Jun 22, 2017 · Viewed 23.1k times · Source

I'm using Vuetifyjs library in my project. I want to add transitions to my components - but there are no documentation about how to start transitions.

For example I want to add some transitions to appearance of my cards on screen.

<v-card transition="v-slide-y-transition">...</v-card>

How to start transition?

Answer

jordanw picture jordanw · Jul 26, 2017

This wraps some card text in a transition. When I trigger the v-show="show" model to true, the text slides in.

<v-slide-y-transition>
  <v-card-text v-show="show">
    Example text
  </v-card-text>
</v-slide-y-transition>

You could have a button trigger it or even add an onCreate() method that triggers the show to true after the component loads.