Add onTransitionEnd message to pattern when its transition finishes