FX

Listen to the last transitionend event.

Compare to Vue Transition API, our from() is fired as soon as the transition function is called, our transition will broken if from() has forced layout / reflow.

But as described above, this is just an approach to the last transitionend event, only done() is essential.

CSS Transition

Code