Basic use of vue3 animation

1. Vue's transition animation

1. The basic use of transition

Note: The transition component wraps a single element or component

insert image description here

2. The principle of the transition component

insert image description here

3. The class of the transition animation

insert image description here

Note: If the transition component does not set the name attribute, then the class defaults to v-

4. Class naming rules and adding timing

insert image description here

Note: If we use a transition without a name, then all classes will be prefixed with v- by default;
if we add a name attribute, for example, then all classes will start with why-;

Two, animation animation

insert image description here
insert image description here

3. Set animation and transition at the same time

insert image description here

4. Display the specified animation time

insert image description here

Five, two elements switch mode attribute

insert image description here
insert image description here

5. Switching of dynamic components

insert image description here

6. The first rendering of appear

insert image description here

Guess you like

Origin blog.csdn.net/l_l_l_l_l_l_l_li/article/details/118056277