Invoke a function after transition or immediately.
Install with component(1):
$ component install yields/after-transition
Invoke the given fn
after transitions
It will be invoked only if the browser
supports transitions and
the element has transitions
set in .style
or css.
Same as after()
only the function is invoked once.
- for this to work the element style must be computed.
- it uses
.getComputedStyle()
.
MIT