How to dynamically add a toggle effect to the display and hiding of DIV by vue

problem description

now you can get the emergence animation and disappearance animation of div from the background, and the common switching mode of ppt. How to dynamically add this toggle animation

the environmental background of the problems and what methods you have tried


1
2:
3

vuetransition 

transitioncssjs

what result do you expect? What is the error message actually seen?

   DIV
Feb.14,2022

this is achievable.
what you struggle with now is that you only want to use transition with css to complete the animation, but the rendering effect of the animation should be controlled by js. In fact, you can completely abandon using css. Transition can use javascript hooks to complete the animation
you can look at the official documents. There is a special way to deal with your needs
ide/transitions.html-sharpJavaScript-%E9%92%A9%E5%AD%90" rel=" nofollow noreferrer "> https://cn.vuejs.org/v2/guide.

Menu