Vue hook function:... Done must be used for callback in enter and leave. Otherwise, they will be called synchronously and the transition will be completed immediately

without done (), it has js effect, but with done (), there is no animation effect

clipboard.png

Jun.17,2022

I think you need to bind the transitionend event to the element in enter and leave, and execute the done () method in this event. The transitionend event is triggered after the element transition ends, and you directly call done () before the transition is over.

Menu