Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I remove Vue transition dynamically

I have a table body which is declared as animation block.

In some particular scenarios I want remove the transition to the table body. Is there any way to do that.

like image 516
hema sundar Ginni Avatar asked Sep 15 '25 21:09

hema sundar Ginni


1 Answers

HTML

<transition name="condition ? 'fade' : ''">
    <p>Hello</p>
</transition>

Specify the condition in the name attribute, when condition is true (or equal any value) run the "name" argument, in another case leave it empty and the transition will not work

like image 127
Krasavtseva Ekaterina Avatar answered Sep 17 '25 20:09

Krasavtseva Ekaterina