refactor(transformer): use transitionend event for more accuracy