Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use "vuetify" transitions on my components?

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?

like image 501
YanDatsiuk Avatar asked Jun 22 '17 07:06

YanDatsiuk


People also ask

How do Vue transitions work?

Transition, as the word sounds, is when a change occurs while something moves from one state to another. State in the sense starting point and the ending point. Vue applies transition effects when elements are inserted, updated, or removed from the DOM.

Does Vuetify support Vue 3?

The current version of Vuetify does not support Vue 3. Support for Vue 3 will come with the release of Vuetify v3 . When creating a new project, please ensure you selected Vue 2 from the Vue CLI prompts, or that you are installing to an existing Vue 2 project.


1 Answers

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.

like image 124
jordanw Avatar answered Oct 14 '22 18:10

jordanw