Skip to content
Discussion options

You must be logged in to vote

When a transition happens, transitionend event is dispatched, this is native behavior. It won't happen when there is no transition.

You can use some code to tap into element internals, and, after x-show/x-transition is registered, wrap el._x_doShow in another function that also does whatever you want and put that in it's place.

Is there a reason why you'd want to hook into the action in the dom and not onto the values themselves?

There's a few different ways to do the general idea of knowing when the show evaluates, but which makes sense depends on why you want to do it in the first place.

Replies: 2 comments 10 replies

Comment options

You must be logged in to vote
10 replies
@asbjornu
Comment options

@nikitaourazbaev
Comment options

@mynona
Comment options

@ekwoka
Comment options

@nikitaourazbaev
Comment options

Answer selected by nikitaourazbaev
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
6 participants